mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Tado add proper off state (#135480)
* Add proper off state * Remove current temp * Add default frost temp
This commit is contained in:
parent
5283e1a39f
commit
1ab5bdf85f
@ -477,11 +477,9 @@ class TadoClimate(TadoZoneEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def target_temperature(self) -> float | None:
|
def target_temperature(self) -> float | None:
|
||||||
"""Return the temperature we try to reach."""
|
"""Return the temperature we try to reach."""
|
||||||
# If the target temperature will be None
|
if self._current_tado_hvac_mode == CONST_MODE_OFF:
|
||||||
# if the device is performing an action
|
return TADO_DEFAULT_MIN_TEMP
|
||||||
# that does not affect the temperature or
|
return self._tado_zone_data.target_temp
|
||||||
# the device is switching states
|
|
||||||
return self._tado_zone_data.target_temp or self._tado_zone_data.current_temp
|
|
||||||
|
|
||||||
async def set_timer(
|
async def set_timer(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user