From 5c768c3f89d65d86a71780a9543a890191d5183c Mon Sep 17 00:00:00 2001 From: mkmer Date: Wed, 8 Mar 2023 16:02:18 -0500 Subject: [PATCH] Bump aiosomecomfort to 0.0.14 (#89393) --- homeassistant/components/honeywell/climate.py | 23 +++++++++---------- .../components/honeywell/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/homeassistant/components/honeywell/climate.py b/homeassistant/components/honeywell/climate.py index 9184b8c3d66..e9dae1e2074 100644 --- a/homeassistant/components/honeywell/climate.py +++ b/homeassistant/components/honeywell/climate.py @@ -292,21 +292,22 @@ class HoneywellUSThermostat(ClimateEntity): hour_cool, minute_cool = divmod( self._device.raw_ui_data["CoolNextPeriod"] * 15, 60 ) - # Set hold time + # Set temporary hold time and temperature if mode in COOLING_MODES: await self._device.set_hold_cool( - datetime.time(hour_cool, minute_cool) + datetime.time(hour_cool, minute_cool), temperature ) if mode in HEATING_MODES: await self._device.set_hold_heat( - datetime.time(hour_heat, minute_heat) + datetime.time(hour_heat, minute_heat), temperature ) - # Set temperature if not in auto - if mode == "cool": - await self._device.set_setpoint_cool(temperature) - if mode == "heat": - await self._device.set_setpoint_heat(temperature) + # Set temperature if not in auto - set the temperature + else: + if mode == "cool": + await self._device.set_setpoint_cool(temperature) + if mode == "heat": + await self._device.set_setpoint_heat(temperature) except aiosomecomfort.SomeComfortError as err: _LOGGER.error("Invalid temperature %.1f: %s", temperature, err) @@ -350,11 +351,9 @@ class HoneywellUSThermostat(ClimateEntity): # Set permanent hold # and Set temperature if mode in COOLING_MODES: - await self._device.set_hold_cool(True) - await self._device.set_setpoint_cool(self._cool_away_temp) + await self._device.set_hold_cool(True, self._cool_away_temp) if mode in HEATING_MODES: - await self._device.set_hold_heat(True) - await self._device.set_setpoint_heat(self._heat_away_temp) + await self._device.set_hold_heat(True, self._heat_away_temp) except aiosomecomfort.SomeComfortError: _LOGGER.error( diff --git a/homeassistant/components/honeywell/manifest.json b/homeassistant/components/honeywell/manifest.json index 989e6057490..8f3b66ddeac 100644 --- a/homeassistant/components/honeywell/manifest.json +++ b/homeassistant/components/honeywell/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/honeywell", "iot_class": "cloud_polling", "loggers": ["somecomfort"], - "requirements": ["aiosomecomfort==0.0.11"] + "requirements": ["aiosomecomfort==0.0.14"] } diff --git a/requirements_all.txt b/requirements_all.txt index b25b637d68a..f0b72b981ed 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -276,7 +276,7 @@ aioskybell==22.7.0 aioslimproto==2.1.1 # homeassistant.components.honeywell -aiosomecomfort==0.0.11 +aiosomecomfort==0.0.14 # homeassistant.components.steamist aiosteamist==0.3.2 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 2b2fcf56f2e..fa524b6aa8f 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -254,7 +254,7 @@ aioskybell==22.7.0 aioslimproto==2.1.1 # homeassistant.components.honeywell -aiosomecomfort==0.0.11 +aiosomecomfort==0.0.14 # homeassistant.components.steamist aiosteamist==0.3.2