1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Pass a helpful name when creating common asyncio tasks in core (#89171)

This commit is contained in:
J. Nick Koston
2023-03-05 01:46:02 -10:00
committed by GitHub
parent 927b43626c
commit 11681f3f31
23 changed files with 169 additions and 61 deletions

View File

@@ -508,7 +508,9 @@ async def async_setup_multi_components(
) -> None:
"""Set up multiple domains. Log on failure."""
futures = {
domain: hass.async_create_task(async_setup_component(hass, domain, config))
domain: hass.async_create_task(
async_setup_component(hass, domain, config), f"setup component {domain}"
)
for domain in domains
}
await asyncio.wait(futures.values())