Skip to content

Commit

Permalink
Just ignore illegal target temp, do not throw away all data (#635)
Browse files Browse the repository at this point in the history
Co-authored-by: Gernot Messow <[email protected]>
  • Loading branch information
gpayer and Gernot Messow authored Nov 14, 2024
1 parent d624c32 commit 4f8e45d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/versatile_thermostat/thermostat_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ async def end_climate_changed(changes: bool):
)
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
Expand All @@ -739,7 +739,8 @@ async def end_climate_changed(changes: bool):
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(
Expand Down

0 comments on commit 4f8e45d

Please sign in to comment.