mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Disable call_soon for device tracker device registry updates (#93638)
Run device tracker device registry updates immediately without the call_soon delay. This listener does not need a delay and it only adds overhead in this case.
This commit is contained in:
parent
b966ff7a3d
commit
67d9fa8b22
@ -176,7 +176,9 @@ def _async_register_mac(
|
||||
# Enable entity
|
||||
ent_reg.async_update_entity(entity_id, disabled_by=None)
|
||||
|
||||
hass.bus.async_listen(dr.EVENT_DEVICE_REGISTRY_UPDATED, handle_device_event)
|
||||
hass.bus.async_listen(
|
||||
dr.EVENT_DEVICE_REGISTRY_UPDATED, handle_device_event, run_immediately=True
|
||||
)
|
||||
|
||||
|
||||
class BaseTrackerEntity(Entity):
|
||||
|
Loading…
x
Reference in New Issue
Block a user