Skip to content

Commit

Permalink
swap order of service arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Mar 27, 2024
1 parent f7327c6 commit 0627a94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions custom_components/mass/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class MassPlayer(MassBaseEntity, MediaPlayerEntity):
def __init__(self, mass: MusicAssistantClient, player_id: str) -> None:
"""Initialize MediaPlayer entity."""
super().__init__(mass, player_id)
self._attr_icon = self.player.icon.replace("mdi-", "mdi:")
self._attr_media_image_remotely_accessible = True
self._attr_supported_features = SUPPORTED_FEATURES
if PlayerFeature.SYNC in self.player.supported_features:
Expand Down
30 changes: 15 additions & 15 deletions custom_components/mass/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ play_media:
- playlist
- track
- radio
artist:
required: false
example: "Queen"
selector:
text:
album:
required: false
example: "News of the world"
selector:
text:
enqueue:
filter:
supported_features:
Expand All @@ -38,6 +48,11 @@ play_media:
- "replace_next"
- "add"
translation_key: enqueue
radio_mode:
required: false
advanced: true
selector:
boolean:
announce:
filter:
supported_features:
Expand Down Expand Up @@ -65,21 +80,6 @@ play_media:
min: 1
max: 100
step: 1
artist:
required: false
example: "Queen"
selector:
text:
album:
required: false
example: "News of the world"
selector:
text:
radio_mode:
required: false
advanced: true
selector:
boolean:

search:
fields:
Expand Down

0 comments on commit 0627a94

Please sign in to comment.