Fix climate on/off in nexia (#119254)

This commit is contained in:
J. Nick Koston
2024-06-10 01:17:29 -05:00
committed by GitHub
parent 8b5627b1be
commit 8b6fbd5b3f

View File

@@ -388,12 +388,12 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity):
async def async_turn_off(self) -> None:
"""Turn off the zone."""
await self.async_set_hvac_mode(OPERATION_MODE_OFF)
await self.async_set_hvac_mode(HVACMode.OFF)
self._signal_zone_update()
async def async_turn_on(self) -> None:
"""Turn on the zone."""
await self.async_set_hvac_mode(OPERATION_MODE_AUTO)
await self.async_set_hvac_mode(HVACMode.AUTO)
self._signal_zone_update()
async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None: