mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Faster async entity update on component. (#4384)
This commit is contained in:
commit
7f5f458074
@ -377,7 +377,8 @@ class EntityPlatform(object):
|
|||||||
|
|
||||||
update_coro = entity.async_update_ha_state(True)
|
update_coro = entity.async_update_ha_state(True)
|
||||||
if hasattr(entity, 'async_update'):
|
if hasattr(entity, 'async_update'):
|
||||||
tasks.append(update_coro)
|
tasks.append(
|
||||||
|
self.component.hass.loop.create_task(update_coro))
|
||||||
else:
|
else:
|
||||||
to_update.append(update_coro)
|
to_update.append(update_coro)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user