mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Use run_immediately for starting discovery at the started event (#113112)
This commit is contained in:
parent
b87036eebe
commit
1536a3981f
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user