Skip to content

Commit

Permalink
FIX AC climate stops even if already stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Collin committed Jul 30, 2023
1 parent f4cabbf commit aa3b877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/versatile_thermostat/underlyings.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ async def set_hvac_mode(self, hvac_mode: HVACMode) -> bool:
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,
]
Expand Down

0 comments on commit aa3b877

Please sign in to comment.