Fix nexia permanent hold when cool and heat temps are within 2 degrees (#80297)

This commit is contained in:
J. Nick Koston 2022-10-13 14:53:09 -10:00 committed by GitHub
parent 000e092096
commit 5b6e46e7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -206,7 +206,7 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity):
"""Set the hvac run mode."""
if run_mode is not None:
if run_mode == HOLD_PERMANENT:
await self._zone.call_permanent_hold()
await self._zone.set_permanent_hold()
else:
await self._zone.call_return_to_schedule()
if hvac_mode is not None:
@ -399,7 +399,7 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity):
await self._zone.call_return_to_schedule()
await self._zone.set_mode(mode=OPERATION_MODE_AUTO)
else:
await self._zone.call_permanent_hold()
await self._zone.set_permanent_hold()
await self._zone.set_mode(mode=HA_TO_NEXIA_HVAC_MODE_MAP[hvac_mode])
self._signal_zone_update()

View file

@ -1,7 +1,7 @@
{
"domain": "nexia",
"name": "Nexia/American Standard/Trane",
"requirements": ["nexia==2.0.2"],
"requirements": ["nexia==2.0.4"],
"codeowners": ["@bdraco"],
"documentation": "https://www.home-assistant.io/integrations/nexia",
"config_flow": true,

View file

@ -62,7 +62,7 @@ class NexiaHoldSwitch(NexiaThermostatZoneEntity, SwitchEntity):
if self._zone.get_current_mode() == OPERATION_MODE_OFF:
await self._zone.call_permanent_off()
else:
await self._zone.call_permanent_hold()
await self._zone.set_permanent_hold()
self._signal_zone_update()
async def async_turn_off(self, **kwargs: Any) -> None:

View file

@ -1138,7 +1138,7 @@ nettigo-air-monitor==1.4.2
neurio==0.3.1
# homeassistant.components.nexia
nexia==2.0.2
nexia==2.0.4
# homeassistant.components.nextcloud
nextcloudmonitor==1.1.0

View file

@ -828,7 +828,7 @@ netmap==0.7.0.2
nettigo-air-monitor==1.4.2
# homeassistant.components.nexia
nexia==2.0.2
nexia==2.0.4
# homeassistant.components.discord
nextcord==2.0.0a8