1
0
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:
J. Nick Koston
2023-05-26 22:11:08 -05:00
parent 5b654c8b79
commit 442eed0acf

View File

@@ -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: