Skip to content

Commit

Permalink
Update media_player.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Jan 30, 2024
1 parent 71db323 commit 22eeabc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom_components/bluesound_alt/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,11 @@ async def rebuild_bluesound_group(self):
f"/SyncStatus"
)

slaves = sync_status["SyncStatus"]
_LOGGER.debug("Slaves: %s", slaves)

slaves = []
for key in sync_status["SyncStatus"].iter():
if key.name == "slave":
_LOGGER.debug("Slave: %s", key.id)
slaves.append(key.id + ":" + key.port)

for slave in slaves:
new_device_group.append(slave.id + ":" + slave.port)
Expand Down

0 comments on commit 22eeabc

Please sign in to comment.