mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Only wait for import flows to initialize at setup (#86106)
* Only wait for import flows to initialize at setup * Update hassio tests * Update hassio tests * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -286,7 +286,7 @@ async def _async_setup_component(
|
||||
|
||||
# Flush out async_setup calling create_task. Fragile but covered by test.
|
||||
await asyncio.sleep(0)
|
||||
await hass.config_entries.flow.async_wait_init_flow_finish(domain)
|
||||
await hass.config_entries.flow.async_wait_import_flow_initialized(domain)
|
||||
|
||||
# Add to components before the entry.async_setup
|
||||
# call to avoid a deadlock when forwarding platforms
|
||||
|
||||
Reference in New Issue
Block a user