mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Protect against bad data stored in ZHA (#30183)
This commit is contained in:
parent
3aa2ae1700
commit
85d2ba047b
@ -449,7 +449,11 @@ async def remove_group(group, zha_gateway):
|
||||
group.group_id
|
||||
)
|
||||
)
|
||||
await asyncio.gather(*tasks)
|
||||
if tasks:
|
||||
await asyncio.gather(*tasks)
|
||||
else:
|
||||
# we have members but none are tracked by ZHA for whatever reason
|
||||
zha_gateway.application_controller.groups.pop(group.group_id)
|
||||
else:
|
||||
zha_gateway.application_controller.groups.pop(group.group_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user