Homematic faster update with async (#4929)

This commit is contained in:
Pascal Vizeli 2016-12-15 21:26:13 +01:00 committed by GitHub
parent 1a7895b1d8
commit 43d18daebd

View File

@ -825,7 +825,7 @@ class HMDevice(Entity):
if have_change: if have_change:
_LOGGER.debug("%s update_ha_state after '%s'", self._name, _LOGGER.debug("%s update_ha_state after '%s'", self._name,
attribute) attribute)
self.update_ha_state() self.schedule_update_ha_state()
def _subscribe_homematic_events(self): def _subscribe_homematic_events(self):
"""Subscribe all required events to handle job.""" """Subscribe all required events to handle job."""