Skip to content
Snippets Groups Projects
Commit eae52a8f authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

More target temperature nest fixes

parent dbf2f622
No related branches found
No related tags found
No related merge requests found
......@@ -80,11 +80,11 @@ class NestThermostat(ThermostatDevice):
low, high = target
if self.current_temperature < low:
target = low
temp = low
elif self.current_temperature > high:
target = high
temp = high
else:
target = low + high
temp = (low + high)/2
else:
temp = target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment