From 15c419ae82509a813237c6cf2702b50c2375f56f Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sat, 28 Oct 2023 18:53:20 +0200 Subject: [PATCH] FIX bug (#141) Co-authored-by: Jean-Marc Collin --- 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 b9868c8..0526529 100644 --- a/custom_components/versatile_thermostat/underlyings.py +++ b/custom_components/versatile_thermostat/underlyings.py @@ -148,7 +148,7 @@ async def check_initial_state(self, hvac_mode: HVACMode): self._entity_id, ) await self.set_hvac_mode(hvac_mode) - elif hvac_mode != HVACMode.OFF and self.is_device_active: + elif hvac_mode != HVACMode.OFF and not self.is_device_active: _LOGGER.warning( "%s - The hvac mode is ON, but the underlying device is not ON. Turning on device %s", self,