Hold a lock to prevent concurrent setup of config entries (#116482)

This commit is contained in:
J. Nick Koston 2024-04-30 18:47:12 -05:00 committed by GitHub
parent 3c7cbf5794
commit 6cf1c5c1f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 129 additions and 18 deletions

View file

@ -449,7 +449,7 @@ async def _async_setup_component(
await asyncio.gather(
*(
create_eager_task(
entry.async_setup(hass, integration=integration),
entry.async_setup_locked(hass, integration=integration),
name=f"config entry setup {entry.title} {entry.domain} {entry.entry_id}",
)
for entry in entries