mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 15:27:08 +00:00
Run dhcp listeners with run_immediately (#113726)
Neither of these need a call_soon
This commit is contained in:
parent
3dc8df2403
commit
40ce2011be
@ -157,9 +157,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
for watcher in watchers:
|
for watcher in watchers:
|
||||||
watcher.async_stop()
|
watcher.async_stop()
|
||||||
|
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _async_stop)
|
hass.bus.async_listen_once(
|
||||||
|
EVENT_HOMEASSISTANT_STOP, _async_stop, run_immediately=True
|
||||||
|
)
|
||||||
|
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STARTED, _async_initialize)
|
hass.bus.async_listen_once(
|
||||||
|
EVENT_HOMEASSISTANT_STARTED, _async_initialize, run_immediately=True
|
||||||
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user