Skip to content

Commit

Permalink
Fix small typo in player selection for group player
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Oct 18, 2024
1 parent fa865f8 commit 0569572
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions music_assistant/server/providers/player_group/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,10 @@ async def get_player_config_entries(self, player_id: str) -> tuple[ConfigEntry]:
)
# handle config entries for syncgroup players
group_members = CONF_ENTRY_GROUP_MEMBERS
group_members.options = tuple(
ConfigValueOption(x.display_name, x.player_id)
for x in self.mass.players.all(True, False)
if (player_prov := self.mass.get_provider(x.provider))
and group_type == player_prov.lookup_key
and ProviderFeature.SYNC_PLAYERS in player_prov.supported_features
)
if player_prov := self.mass.get_provider(group_type):
group_members.options = tuple(
ConfigValueOption(x.display_name, x.player_id) for x in player_prov.players
)

# grab additional details from one of the provider's players
if not (player_provider := self.mass.get_provider(group_type)):
Expand Down

0 comments on commit 0569572

Please sign in to comment.