Faster async entity update on component.

pull/4384/head
pvizeli 2016-11-14 14:18:04 +01:00
parent bd9429d3af
commit cb24282040
1 changed files with 2 additions and 1 deletions

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)