From 17658c186059044cf924e99562604336d835eaa5 Mon Sep 17 00:00:00 2001 From: PeteRager Date: Mon, 15 Dec 2025 09:05:55 -0500 Subject: [PATCH] fix: increase timeout --- homeassistant/components/sonos/speaker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sonos/speaker.py b/homeassistant/components/sonos/speaker.py index c61f047d3e3861..b1032b9836aa20 100644 --- a/homeassistant/components/sonos/speaker.py +++ b/homeassistant/components/sonos/speaker.py @@ -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, @@ -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: