From 1fb19612ced9afd9d7500b04f21ef421f018bac8 Mon Sep 17 00:00:00 2001 From: Oscar Calvo <2091582+ocalvo@users.noreply.github.com> Date: Thu, 10 Aug 2023 21:36:29 -0600 Subject: [PATCH] Fix crash while getting data (#3) --- ccm15/CCM15Device.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ccm15/CCM15Device.py b/ccm15/CCM15Device.py index 5b6ddc3..bd6f784 100644 --- a/ccm15/CCM15Device.py +++ b/ccm15/CCM15Device.py @@ -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: diff --git a/setup.py b/setup.py index 1f46663..75d49d5 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="py-ccm15", - version="0.0.4", + version="0.0.5", author="Oscar Calvo", author_email="oscar@calvonet.com", description="A package to control Midea CCM15 data converter modules",