diff --git a/homeassistant/components/dhcp/__init__.py b/homeassistant/components/dhcp/__init__.py index 5325283eb0a..050bc7a74b2 100644 --- a/homeassistant/components/dhcp/__init__.py +++ b/homeassistant/components/dhcp/__init__.py @@ -157,9 +157,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: for watcher in watchers: 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