Just ignore illegal target temp, do not throw away all data (#635)

Co-authored-by: Gernot Messow <gmessow@insys-locks.de>
This commit is contained in:
Gernot Messow
2024-11-14 21:54:15 +01:00
committed by GitHub
parent d624c327b6
commit 4f8e45dda6

View File

@@ -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(