mirror of
https://github.com/home-assistant/core.git
synced 2025-05-02 05:07:52 +00:00
Update generic_thermostat.py
This commit is contained in:
parent
6ef9714dc1
commit
64c9cd805a
@ -134,8 +134,8 @@ class GenericThermostat(ClimateDevice):
|
|||||||
if temperature is None:
|
if temperature is None:
|
||||||
return
|
return
|
||||||
self._target_temp = temperature
|
self._target_temp = temperature
|
||||||
self.schedule_update_ha_state()
|
|
||||||
self._control_heating()
|
self._control_heating()
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def min_temp(self):
|
def min_temp(self):
|
||||||
@ -163,8 +163,8 @@ class GenericThermostat(ClimateDevice):
|
|||||||
return
|
return
|
||||||
|
|
||||||
self._update_temp(new_state)
|
self._update_temp(new_state)
|
||||||
self.schedule_update_ha_state()
|
|
||||||
self._control_heating()
|
self._control_heating()
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
def _switch_changed(self, entity_id, old_state, new_state):
|
def _switch_changed(self, entity_id, old_state, new_state):
|
||||||
"""Called when heater switch changes state."""
|
"""Called when heater switch changes state."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user