Skip to content

Commit

Permalink
Fix error in Universal group player (#750)
Browse files Browse the repository at this point in the history
Fix error in group player
  • Loading branch information
marcelveldt authored Jul 8, 2023
1 parent 69063bf commit 0b1a796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion music_assistant/server/providers/ugp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ async def get_player_config_entries(self, player_id: str) -> tuple[ConfigEntry]:
ConfigValueOption(x.display_name, x.player_id)
for x in self._get_active_members(player_id, False, False)
),
default_value=[],
description="To prevent a restart of the stream, when a child player "
"turns on while the group is already playing, you can enable a workaround "
"where Music Assistant uses muting to control the group players. \n\n"
Expand Down Expand Up @@ -267,7 +268,7 @@ async def cmd_power(self, player_id: str, powered: bool) -> None:
group_power_on = await self.mass.config.get_player_config_value(
player_id, CONF_GROUPED_POWER_ON
)
mute_childs = await self.mass.config.get_player_config_value(player_id, CONF_MUTE_CHILDS)
mute_childs = self.mass.config.get_raw_player_config_value(player_id, CONF_MUTE_CHILDS, [])
# set mute_as_power feature for group members
for child_player_id in mute_childs:
if child_player := self.mass.players.get(child_player_id):
Expand Down

0 comments on commit 0b1a796

Please sign in to comment.