Add names to common helper tasks (#90803)

This commit is contained in:
J. Nick Koston
2023-04-04 20:41:15 -10:00
committed by GitHub
parent 21a873f0af
commit 5eb0c35a97
4 changed files with 18 additions and 7 deletions

View File

@@ -114,7 +114,9 @@ class EntityComponent(Generic[_EntityT]):
This doesn't block the executor to protect from deadlocks.
"""
self.hass.add_job(self.async_setup(config))
self.hass.create_task(
self.async_setup(config), f"EntityComponent setup {self.domain}"
)
async def async_setup(self, config: ConfigType) -> None:
"""Set up a full entity component.