mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix error on shutdown when no Sonos devices available (#75798)
This commit is contained in:
parent
5687150786
commit
bbdce93291
@ -201,7 +201,11 @@ class SonosDiscoveryManager:
|
|||||||
speaker.activity_stats.log_report()
|
speaker.activity_stats.log_report()
|
||||||
speaker.event_stats.log_report()
|
speaker.event_stats.log_report()
|
||||||
if zgs := next(
|
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(
|
_LOGGER.debug(
|
||||||
"ZoneGroupState stats: (%s/%s) processed",
|
"ZoneGroupState stats: (%s/%s) processed",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user