mirror of
https://github.com/elisspace/core.git
synced 2026-08-29 15:43:55 +00:00
Disable call_soon for rfxtrx device registry updates
Run rfxtrx 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:
@@ -263,7 +263,9 @@ async def async_setup_internal(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||
_remove_device(device_id)
|
||||
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen(dr.EVENT_DEVICE_REGISTRY_UPDATED, _updated_device)
|
||||
hass.bus.async_listen(
|
||||
dr.EVENT_DEVICE_REGISTRY_UPDATED, _updated_device, run_immediately=True
|
||||
)
|
||||
)
|
||||
|
||||
def _shutdown_rfxtrx(event: Event) -> None:
|
||||
|
||||
Reference in New Issue
Block a user