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 9a20bf8 commit 8f18dad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/bluesound_alt/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ async def rebuild_bluesound_group(self):
bluesound_group = []

device_group = self._group_name.split("+")

new_device_group = []

if self.is_master:
new_device_group.append(self)
sync_status = await self.send_bluesound_command(
Expand All @@ -893,6 +893,8 @@ async def rebuild_bluesound_group(self):
slave_id = slave_objects['@id']
slave_port = slave_objects['@port']
slaves.append(slave_id + ":" + slave_port)

new_device_group = slaves
else:
_LOGGER.debug("Device is a slave: %s", new_device_group)

Expand Down

0 comments on commit 8f18dad

Please sign in to comment.