From 1536a3981fe873de2f04624582b42c4d16338d32 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 11 Mar 2024 14:29:39 -1000 Subject: [PATCH] Use run_immediately for starting discovery at the started event (#113112) --- homeassistant/helpers/discovery_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/discovery_flow.py b/homeassistant/helpers/discovery_flow.py index b6633a3f718..e24b405c685 100644 --- a/homeassistant/helpers/discovery_flow.py +++ b/homeassistant/helpers/discovery_flow.py @@ -82,7 +82,9 @@ class FlowDispatcher: @callback def async_setup(self) -> None: """Set up the flow disptcher.""" - self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STARTED, self._async_start) + self.hass.bus.async_listen_once( + EVENT_HOMEASSISTANT_STARTED, self._async_start, run_immediately=True + ) async def _async_start(self, event: Event) -> None: """Start processing pending flows."""