From b30c7b47f656497676491aa62a79fa737e6e6424 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 10 Mar 2024 17:24:48 -1000 Subject: [PATCH] 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 --- homeassistant/components/person/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/person/__init__.py b/homeassistant/components/person/__init__.py index 77e88c8509a..d75531d3052 100644 --- a/homeassistant/components/person/__init__.py +++ b/homeassistant/components/person/__init__.py @@ -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