Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Nov 8, 2024
1 parent 2d44d16 commit f37c11f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions custom_components/mass/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
ATTR_AUTO_PLAY = "auto_play"


def catch_musicassistant_error[
_R, **P
](func: Callable[..., Awaitable[_R]]) -> Callable[..., Coroutine[Any, Any, _R | None]]:
def catch_musicassistant_error[_R, **P](
func: Callable[..., Awaitable[_R]],
) -> Callable[..., Coroutine[Any, Any, _R | None]]:
"""Check and log commands to players."""

@functools.wraps(func)
Expand Down
6 changes: 3 additions & 3 deletions custom_sentences/en/music_assistant_PlayMediaAssist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ intents:
"on": "(on|using)"
artist: "[the ](artist|band|group)"
track: "[the ](track|song)"
album: "[the ](album|ep|record)"
album: "[the ](album|ep|record)"
playlist: "[the ]playlist"
radio_station: "[the ]((radio station)|(radio)|(station))"
requires_context:
domain: "media_player"

# CONTEXT AWARNESS
# CONTEXT AWARNESS
- sentences:
- "<play> <artist> {artist}"
- "<play> <album> {album} [by <artist> {artist}]"
Expand All @@ -64,4 +64,4 @@ lists:
playlist:
wildcard: true
radio:
wildcard: true
wildcard: true
2 changes: 1 addition & 1 deletion custom_sentences/en/play_media_on_media_player.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ intents:
domain: "media_player"
lists:
query:
wildcard: true
wildcard: true

0 comments on commit f37c11f

Please sign in to comment.