diff --git a/custom_components/versatile_thermostat/feature_auto_start_stop_manager.py b/custom_components/versatile_thermostat/feature_auto_start_stop_manager.py index 8708563..775cd53 100644 --- a/custom_components/versatile_thermostat/feature_auto_start_stop_manager.py +++ b/custom_components/versatile_thermostat/feature_auto_start_stop_manager.py @@ -70,6 +70,10 @@ def post_init(self, entry_infos: ConfigData): self._auto_start_stop_level, self.name ) + # Fix an eventual incoherent state + if self._vtherm.is_on and self._vtherm.hvac_off_reason == HVAC_OFF_REASON_AUTO_START_STOP: + self._vtherm.hvac_off_reason = None + @overrides async def start_listening(self): """Start listening the underlying entity"""