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

Add names to the config entry setup and shutdown tasks (#89309)

* name the entry setup tasks

* name a few more tasks

* Update homeassistant/config_entries.py

* Update homeassistant/setup.py
This commit is contained in:
J. Nick Koston
2023-03-08 05:19:36 -10:00
committed by GitHub
parent 3e2ee7cd11
commit 4ce36366c3
2 changed files with 29 additions and 5 deletions

View File

@@ -295,7 +295,10 @@ async def _async_setup_component(
await asyncio.gather(
*(
entry.async_setup(hass, integration=integration)
asyncio.create_task(
entry.async_setup(hass, integration=integration),
name=f"config entry setup {entry.title} {entry.domain} {entry.entry_id}",
)
for entry in hass.config_entries.async_entries(domain)
)
)