Update generic_thermostat.py

pull/5420/head
Gianluca Barbaro 2017-01-19 19:46:58 +01:00 committed by GitHub
parent a87d653077
commit 6ef9714dc1
1 changed files with 2 additions and 2 deletions

View File

@ -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.update_ha_state()
@property
def min_temp(self):
@ -163,8 +163,8 @@ class GenericThermostat(ClimateDevice):
return
self._update_temp(new_state)
self._control_heating()
self.schedule_update_ha_state()
self._control_heating()
def _switch_changed(self, entity_id, old_state, new_state):
"""Called when heater switch changes state."""