Use run_immediately for starting discovery at the started event (#113112)
This commit is contained in:
parent
b87036eebe
commit
1536a3981f
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue