Bump aiosomecomfort to 0.0.14 (#89393)

This commit is contained in:
mkmer 2023-03-08 16:02:18 -05:00 committed by GitHub
parent e1d62b554a
commit 5c768c3f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 15 deletions

View file

@ -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(

View file

@ -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"]
}

View file

@ -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

View file

@ -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