Hold a lock to prevent concurrent setup of config entries (#116482)
This commit is contained in:
parent
3c7cbf5794
commit
6cf1c5c1f2
7 changed files with 129 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue