Tado add proper off state (#135480)

* Add proper off state

* Remove current temp

* Add default frost temp
This commit is contained in:
Erwin Douna 2025-03-28 20:54:36 +01:00 committed by GitHub
parent 5283e1a39f
commit 1ab5bdf85f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -477,11 +477,9 @@ class TadoClimate(TadoZoneEntity, ClimateEntity):
@property
def target_temperature(self) -> float | None:
"""Return the temperature we try to reach."""
# If the target temperature will be None
# if the device is performing an action
# that does not affect the temperature or
# the device is switching states
return self._tado_zone_data.target_temp or self._tado_zone_data.current_temp
if self._current_tado_hvac_mode == CONST_MODE_OFF:
return TADO_DEFAULT_MIN_TEMP
return self._tado_zone_data.target_temp
async def set_timer(
self,