mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Fully fix race in removing entities (#111499)
Full fix race in removing entities Followup to #110978 now that we can start the task eagerly it completely closes the race window
This commit is contained in:
parent
f984cca49b
commit
ce0fb1e716
@ -1457,7 +1457,7 @@ class Entity(
|
||||
self._removed_from_registry = is_remove
|
||||
if action == "update" or is_remove:
|
||||
self.hass.async_create_task(
|
||||
self._async_process_registry_update_or_remove(event)
|
||||
self._async_process_registry_update_or_remove(event), eager_start=True
|
||||
)
|
||||
|
||||
async def _async_process_registry_update_or_remove(
|
||||
|
Loading…
x
Reference in New Issue
Block a user