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 55ea5bc commit 747a705
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/bluesound_alt/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,10 @@ async def rebuild_bluesound_group(self):
)

master = sync_status["SyncStatus"].get('master')
master_id = master['@id']
master_port = master['@port']
master_device = None
if master != None:
master_id = sync_status["SyncStatus"]["master"]
master_port = master['@port']
master_device = None

for device in self._hass.data[DATA_BLUESOUND]:
if str(device._id) == master_id + ":" + master_port:
Expand Down

0 comments on commit 747a705

Please sign in to comment.