diff --git a/homeassistant/components/sonos/config_flow.py b/homeassistant/components/sonos/config_flow.py index 762dbc5f0ee..3bbdf2d9a26 100644 --- a/homeassistant/components/sonos/config_flow.py +++ b/homeassistant/components/sonos/config_flow.py @@ -42,12 +42,6 @@ class SonosDiscoveryFlowHandler(DiscoveryFlowHandler): boot_seqnum = properties.get("bootseq") model = properties.get("model") uid = hostname_to_uid(hostname) - _LOGGER.debug( - "Calling async_discovered_player for %s with uid=%s and boot_seqnum=%s", - host, - uid, - boot_seqnum, - ) if discovery_manager := self.hass.data.get(DATA_SONOS_DISCOVERY_MANAGER): discovery_manager.async_discovered_player( "Zeroconf", properties, host, uid, boot_seqnum, model diff --git a/homeassistant/components/sonos/speaker.py b/homeassistant/components/sonos/speaker.py index af697836908..2ebef334873 100644 --- a/homeassistant/components/sonos/speaker.py +++ b/homeassistant/components/sonos/speaker.py @@ -460,7 +460,6 @@ class SonosSpeaker: self.soco = soco was_available = self.available - _LOGGER.debug("Async seen: %s, was_available: %s", self.soco, was_available) if self._seen_timer: self._seen_timer() @@ -473,6 +472,12 @@ class SonosSpeaker: self.async_write_entity_states() return + _LOGGER.debug( + "%s [%s] was not available, setting up", + self.zone_name, + self.soco.ip_address, + ) + self._poll_timer = self.hass.helpers.event.async_track_time_interval( partial( async_dispatcher_send,