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:
J. Nick Koston
2024-03-10 17:24:48 -10:00
committed by GitHub
parent b8b8e44454
commit b30c7b47f6

View File

@@ -242,6 +242,7 @@ class PersonStorageCollection(collection.DictStorageCollection):
er.EVENT_ENTITY_REGISTRY_UPDATED, er.EVENT_ENTITY_REGISTRY_UPDATED,
self._entity_registry_updated, self._entity_registry_updated,
event_filter=self._entity_registry_filter, event_filter=self._entity_registry_filter,
run_immediately=True,
) )
@callback @callback