mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
More target temperature nest fixes
This commit is contained in:
parent
dbf2f6223c
commit
eae52a8faf
@ -80,11 +80,11 @@ class NestThermostat(ThermostatDevice):
|
|||||||
low, high = target
|
low, high = target
|
||||||
|
|
||||||
if self.current_temperature < low:
|
if self.current_temperature < low:
|
||||||
target = low
|
temp = low
|
||||||
elif self.current_temperature > high:
|
elif self.current_temperature > high:
|
||||||
target = high
|
temp = high
|
||||||
else:
|
else:
|
||||||
target = low + high
|
temp = (low + high)/2
|
||||||
else:
|
else:
|
||||||
temp = target
|
temp = target
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user