mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Add a timeout during Sonos speaker setup (#71973)
This commit is contained in:
parent
8fcee01db0
commit
e339f43322
@ -204,7 +204,7 @@ class SonosDiscoveryManager:
|
||||
def _add_speaker(self, soco: SoCo) -> None:
|
||||
"""Create and set up a new SonosSpeaker instance."""
|
||||
try:
|
||||
speaker_info = soco.get_speaker_info(True)
|
||||
speaker_info = soco.get_speaker_info(True, timeout=7)
|
||||
if soco.uid not in self.data.boot_counts:
|
||||
self.data.boot_counts[soco.uid] = soco.boot_seqnum
|
||||
_LOGGER.debug("Adding new speaker: %s", speaker_info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user