Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion homeassistant/components/sonos/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

NEVER_TIME = -1200.0
RESUB_COOLDOWN_SECONDS = 10.0
WAIT_FOR_GROUPS_TIMEOUT = 30.0
EVENT_CHARGING = {
"CHARGING": True,
"NOT_CHARGING": False,
Expand Down Expand Up @@ -1212,7 +1213,7 @@ def _test_groups(groups: list[list[SonosSpeaker]]) -> bool:
return True

try:
async with asyncio.timeout(5):
async with asyncio.timeout(WAIT_FOR_GROUPS_TIMEOUT):
while not _test_groups(groups):
await config_entry.runtime_data.topology_condition.wait()
except TimeoutError:
Expand Down
Loading