From 942cd7caa54996d72004192ecadd2b263c06ff10 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 29 Apr 2020 07:21:34 +0200 Subject: [PATCH] Fix sync call in async context generic_thermostat (#34822) --- homeassistant/components/generic_thermostat/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/generic_thermostat/climate.py b/homeassistant/components/generic_thermostat/climate.py index 396d347c3c9..d7889513402 100644 --- a/homeassistant/components/generic_thermostat/climate.py +++ b/homeassistant/components/generic_thermostat/climate.py @@ -325,7 +325,7 @@ class GenericThermostat(ClimateEntity, RestoreEntity): _LOGGER.error("Unrecognized hvac mode: %s", hvac_mode) return # 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): """Set new target temperature."""