Fix sync call in async context generic_thermostat (#34822)

This commit is contained in:
Franck Nijhof 2020-04-29 07:21:34 +02:00 committed by Paulus Schoutsen
parent bf424caf4a
commit e8314e1d86

View File

@ -325,7 +325,7 @@ class GenericThermostat(ClimateDevice, RestoreEntity):
_LOGGER.error("Unrecognized hvac mode: %s", hvac_mode) _LOGGER.error("Unrecognized hvac mode: %s", hvac_mode)
return return
# Ensure we update the current operation after changing the mode # Ensure we update the current operation after changing the mode
self.schedule_update_ha_state() self.async_write_ha_state()
async def async_set_temperature(self, **kwargs): async def async_set_temperature(self, **kwargs):
"""Set new target temperature.""" """Set new target temperature."""