Skip to content

Commit

Permalink
Fix crash while getting data (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocalvo authored Aug 11, 2023
1 parent 0eb6d16 commit 1fb1961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ccm15/CCM15Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, host: str, port: int, timeout = DEFAULT_TIMEOUT):
async def _fetch_xml_data(self) -> str:
url = BASE_URL.format(self.host, self.port, CONF_URL_STATUS)
async with httpx.AsyncClient() as client:
response = await client.get(url, self.timeout)
response = await client.get(url, timeout=self.timeout)
return response.text

async def _fetch_data(self) -> CCM15DeviceState:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="py-ccm15",
version="0.0.4",
version="0.0.5",
author="Oscar Calvo",
author_email="[email protected]",
description="A package to control Midea CCM15 data converter modules",
Expand Down

0 comments on commit 1fb1961

Please sign in to comment.