Upgrade pyupgrade to 2.21.2, apply its changes (#52987)

This commit is contained in:
Ville Skyttä
2021-07-19 11:46:09 +03:00
committed by GitHub
parent c96f01df1f
commit 470f2dd73f
73 changed files with 152 additions and 162 deletions

View File

@@ -331,5 +331,5 @@ class EntityComponent:
async def _async_shutdown(self, event: Event) -> None:
"""Call when Home Assistant is stopping."""
await asyncio.gather(
*[platform.async_shutdown() for platform in chain(self._platforms.values())]
*(platform.async_shutdown() for platform in chain(self._platforms.values()))
)