Avoid scheduling person updates on the event loop (#113010)
These update call the storage collection async_update_item which never suspends so they can finish synchronously without having to be scheduled on the loop when run_immediately, which schedules the task eagerly is set
This commit is contained in:
parent
b8b8e44454
commit
b30c7b47f6
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ class PersonStorageCollection(collection.DictStorageCollection):
|
|||
er.EVENT_ENTITY_REGISTRY_UPDATED,
|
||||
self._entity_registry_updated,
|
||||
event_filter=self._entity_registry_filter,
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
|
Loading…
Add table
Reference in a new issue