mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Use current mode to determine which temperature attributes to use (#4858)
This commit is contained in:
parent
6edb54052f
commit
ecc514b7e4
@ -155,8 +155,8 @@ class NestThermostat(ClimateDevice):
|
|||||||
"""Set new target temperature."""
|
"""Set new target temperature."""
|
||||||
target_temp_low = kwargs.get(ATTR_TARGET_TEMP_LOW)
|
target_temp_low = kwargs.get(ATTR_TARGET_TEMP_LOW)
|
||||||
target_temp_high = kwargs.get(ATTR_TARGET_TEMP_HIGH)
|
target_temp_high = kwargs.get(ATTR_TARGET_TEMP_HIGH)
|
||||||
if target_temp_low is not None and target_temp_high is not None:
|
if self._mode == STATE_HEAT_COOL:
|
||||||
if self._mode == STATE_HEAT_COOL:
|
if target_temp_low is not None and target_temp_high is not None:
|
||||||
temp = (target_temp_low, target_temp_high)
|
temp = (target_temp_low, target_temp_high)
|
||||||
else:
|
else:
|
||||||
temp = kwargs.get(ATTR_TEMPERATURE)
|
temp = kwargs.get(ATTR_TEMPERATURE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user