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 GitHub
parent 5a93a6eec4
commit 942cd7caa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""