From 4f8e45dda675bf936f99c738291711726240fc1a Mon Sep 17 00:00:00 2001 From: Gernot Messow Date: Thu, 14 Nov 2024 21:54:15 +0100 Subject: [PATCH] Just ignore illegal target temp, do not throw away all data (#635) Co-authored-by: Gernot Messow --- custom_components/versatile_thermostat/thermostat_climate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index 6a9ba20..b5e43af 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -725,7 +725,7 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]): ) return - # Forget event when the new target temperature is out of range + # Ignore new target temperature when out of range if ( not new_target_temp is None and not self._attr_min_temp is None @@ -739,7 +739,8 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]): self._attr_min_temp, self._attr_max_temp, ) - return + new_target_temp = None + under_temp_diff = 0 # A real changes have to be managed _LOGGER.info(