FIX AC climate stops even if already stopped

This commit is contained in:
Jean-Marc Collin
2023-07-30 21:25:20 +02:00
parent f4cabbf2c0
commit aa3b87762d

View File

@@ -446,7 +446,7 @@ class UnderlyingClimate(UnderlyingEntity):
def is_device_active(self):
"""If the toggleable device is currently active."""
if self.is_initialized:
return self._underlying_climate.hvac_action not in [
return self._underlying_climate.hvac_mode != HVACMode.OFF and self._underlying_climate.hvac_action not in [
HVACAction.IDLE,
HVACAction.OFF,
]