From aa3b87762d112fc633dd6f769377940e65911a1c Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sun, 30 Jul 2023 21:25:20 +0200 Subject: [PATCH] FIX AC climate stops even if already stopped --- custom_components/versatile_thermostat/underlyings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/versatile_thermostat/underlyings.py b/custom_components/versatile_thermostat/underlyings.py index da9a536..9aa0cd2 100644 --- a/custom_components/versatile_thermostat/underlyings.py +++ b/custom_components/versatile_thermostat/underlyings.py @@ -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, ]