diff --git a/homeassistant/components/sonos/__init__.py b/homeassistant/components/sonos/__init__.py index 837b6c0f749..d94b49e52f2 100644 --- a/homeassistant/components/sonos/__init__.py +++ b/homeassistant/components/sonos/__init__.py @@ -201,7 +201,11 @@ class SonosDiscoveryManager: speaker.activity_stats.log_report() speaker.event_stats.log_report() if zgs := next( - speaker.soco.zone_group_state for speaker in self.data.discovered.values() + ( + speaker.soco.zone_group_state + for speaker in self.data.discovered.values() + ), + None, ): _LOGGER.debug( "ZoneGroupState stats: (%s/%s) processed",