More target temperature nest fixes

This commit is contained in:
Paulus Schoutsen 2015-06-02 00:02:50 -07:00
parent dbf2f6223c
commit eae52a8faf

View File

@ -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