From 64c9cd805ab4e9b47e5f2cfe67cac1f33e1f3acd Mon Sep 17 00:00:00 2001 From: Gianluca Barbaro Date: Thu, 19 Jan 2017 21:26:12 +0100 Subject: [PATCH] Update generic_thermostat.py --- homeassistant/components/climate/generic_thermostat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/climate/generic_thermostat.py b/homeassistant/components/climate/generic_thermostat.py index 4bf704327d2..562847567a3 100644 --- a/homeassistant/components/climate/generic_thermostat.py +++ b/homeassistant/components/climate/generic_thermostat.py @@ -134,8 +134,8 @@ class GenericThermostat(ClimateDevice): if temperature is None: return self._target_temp = temperature - self.schedule_update_ha_state() self._control_heating() + self.schedule_update_ha_state() @property def min_temp(self): @@ -163,8 +163,8 @@ class GenericThermostat(ClimateDevice): return self._update_temp(new_state) - self.schedule_update_ha_state() self._control_heating() + self.schedule_update_ha_state() def _switch_changed(self, entity_id, old_state, new_state): """Called when heater switch changes state."""