From e339f433221547baa6218e75783acd743efdefce Mon Sep 17 00:00:00 2001 From: jjlawren Date: Mon, 16 May 2022 18:03:39 -0500 Subject: [PATCH] Add a timeout during Sonos speaker setup (#71973) --- homeassistant/components/sonos/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sonos/__init__.py b/homeassistant/components/sonos/__init__.py index c775b475dc4..1d7acd8d8dc 100644 --- a/homeassistant/components/sonos/__init__.py +++ b/homeassistant/components/sonos/__init__.py @@ -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)