From f6fb7487d5188389d6b8eee7e84e6eab8a4b4200 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Wed, 16 Oct 2024 19:33:55 +0200 Subject: [PATCH] Issue #467 - Always apply offset compensation (#567) Co-authored-by: Jean-Marc Collin --- .../thermostat_climate.py | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index 24b6366..43ef346 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -228,17 +228,18 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]): and self.auto_regulation_use_device_temp # and we have access to the device temp and (device_temp := under.underlying_current_temperature) is not None + # issue 467 - always apply offset. TODO removes this if ok # and target is not reach (ie we need regulation) - and ( - ( - self.hvac_mode == HVACMode.COOL - and self.target_temperature < self.current_temperature - ) - or ( - self.hvac_mode == HVACMode.HEAT - and self.target_temperature > self.current_temperature - ) - ) + # and ( + # ( + # self.hvac_mode == HVACMode.COOL + # and self.target_temperature < self.current_temperature + # ) + # or ( + # self.hvac_mode == HVACMode.HEAT + # and self.target_temperature > self.current_temperature + # ) + # ) ): offset_temp = device_temp - self.current_temperature