mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 02:48:57 +00:00
Sonos increase wait for groups timeout (#159108)
This commit is contained in:
@@ -72,6 +72,7 @@ if TYPE_CHECKING:
|
|||||||
|
|
||||||
NEVER_TIME = -1200.0
|
NEVER_TIME = -1200.0
|
||||||
RESUB_COOLDOWN_SECONDS = 10.0
|
RESUB_COOLDOWN_SECONDS = 10.0
|
||||||
|
WAIT_FOR_GROUPS_TIMEOUT = 30.0
|
||||||
EVENT_CHARGING = {
|
EVENT_CHARGING = {
|
||||||
"CHARGING": True,
|
"CHARGING": True,
|
||||||
"NOT_CHARGING": False,
|
"NOT_CHARGING": False,
|
||||||
@@ -1212,7 +1213,7 @@ class SonosSpeaker:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
async with asyncio.timeout(5):
|
async with asyncio.timeout(WAIT_FOR_GROUPS_TIMEOUT):
|
||||||
while not _test_groups(groups):
|
while not _test_groups(groups):
|
||||||
await config_entry.runtime_data.topology_condition.wait()
|
await config_entry.runtime_data.topology_condition.wait()
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
|
|||||||
Reference in New Issue
Block a user