mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Pass loop to create_eager_task in loops from more coros (#117390)
This commit is contained in:
parent
9381462877
commit
13414a0a32
@ -1673,7 +1673,9 @@ async def async_process_component_config(
|
|||||||
validated_config
|
validated_config
|
||||||
for validated_config in await asyncio.gather(
|
for validated_config in await asyncio.gather(
|
||||||
*(
|
*(
|
||||||
create_eager_task(async_load_and_validate(p_integration))
|
create_eager_task(
|
||||||
|
async_load_and_validate(p_integration), loop=hass.loop
|
||||||
|
)
|
||||||
for p_integration in platform_integrations_to_load
|
for p_integration in platform_integrations_to_load
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -202,6 +202,7 @@ async def _async_process_dependencies(
|
|||||||
or create_eager_task(
|
or create_eager_task(
|
||||||
async_setup_component(hass, dep, config),
|
async_setup_component(hass, dep, config),
|
||||||
name=f"setup {dep} as dependency of {integration.domain}",
|
name=f"setup {dep} as dependency of {integration.domain}",
|
||||||
|
loop=hass.loop,
|
||||||
)
|
)
|
||||||
for dep in integration.dependencies
|
for dep in integration.dependencies
|
||||||
if dep not in hass.config.components
|
if dep not in hass.config.components
|
||||||
|
Loading…
x
Reference in New Issue
Block a user