mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix zwave_js target_temp_low (#47762)
This commit is contained in:
parent
3ebc262b7f
commit
7ca5e969cc
@ -287,7 +287,12 @@ class ZWaveClimate(ZWaveBaseEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def target_temperature_low(self) -> Optional[float]:
|
def target_temperature_low(self) -> Optional[float]:
|
||||||
"""Return the lowbound target temperature we try to reach."""
|
"""Return the lowbound target temperature we try to reach."""
|
||||||
return self.target_temperature
|
if self._current_mode and self._current_mode.value is None:
|
||||||
|
# guard missing value
|
||||||
|
return None
|
||||||
|
if len(self._current_mode_setpoint_enums) > 1:
|
||||||
|
return self.target_temperature
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def preset_mode(self) -> Optional[str]:
|
def preset_mode(self) -> Optional[str]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user