Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion homeassistant/components/media_player/sonos.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,15 @@ def update_groups(self, event=None):
if group:
# New group information is pushed
coordinator_uid, *slave_uids = group.split(',')
else:
elif self.soco.group:
# Use SoCo cache for existing topology
coordinator_uid = self.soco.group.coordinator.uid
slave_uids = [p.uid for p in self.soco.group.members
if p.uid != coordinator_uid]
else:
# Not yet in the cache, this can happen when a speaker boots
coordinator_uid = self.unique_id
slave_uids = []

if self.unique_id == coordinator_uid:
sonos_group = []
Expand Down