Fix race in removing modified devices from the entity registry (#113623)

pull/113620/head^2
J. Nick Koston 2024-03-16 11:51:56 -10:00 committed by GitHub
parent c58bba55bf
commit 86ccb99f4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -638,7 +638,9 @@ class EntityRegistry(BaseRegistry):
minor_version=STORAGE_VERSION_MINOR,
)
self.hass.bus.async_listen(
EVENT_DEVICE_REGISTRY_UPDATED, self.async_device_modified
EVENT_DEVICE_REGISTRY_UPDATED,
self.async_device_modified,
run_immediately=True,
)
@callback