From 775d3198ae378bd6a39460bff49a089eaf6c4726 Mon Sep 17 00:00:00 2001 From: zyell Date: Thu, 10 Sep 2015 17:46:59 -0700 Subject: [PATCH] Fix logic coverage in target_temperature --- homeassistant/components/thermostat/nest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/thermostat/nest.py b/homeassistant/components/thermostat/nest.py index 428f32694f4..9c4dbfaf937 100644 --- a/homeassistant/components/thermostat/nest.py +++ b/homeassistant/components/thermostat/nest.py @@ -112,7 +112,7 @@ class NestThermostat(ThermostatDevice): range_average = (low + high)/2 if self.current_temperature < range_average: temp = low - elif self.current_temperature > range_average: + elif self.current_temperature >= range_average: temp = high else: temp = target