Faster async entity update on component. (#4384)

This commit is contained in:
Paulus Schoutsen 2016-11-14 18:54:38 -08:00 committed by GitHub
commit 7f5f458074

View File

@ -377,7 +377,8 @@ class EntityPlatform(object):
update_coro = entity.async_update_ha_state(True)
if hasattr(entity, 'async_update'):
tasks.append(update_coro)
tasks.append(
self.component.hass.loop.create_task(update_coro))
else:
to_update.append(update_coro)