From f37c11f5cb0d5e7ceecd9e9c23429cb47d611734 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 8 Nov 2024 22:59:37 +0100 Subject: [PATCH] lint --- custom_components/mass/media_player.py | 6 +++--- custom_sentences/en/music_assistant_PlayMediaAssist.yaml | 6 +++--- custom_sentences/en/play_media_on_media_player.yaml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/custom_components/mass/media_player.py b/custom_components/mass/media_player.py index 74487ad3..009e9d94 100644 --- a/custom_components/mass/media_player.py +++ b/custom_components/mass/media_player.py @@ -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) diff --git a/custom_sentences/en/music_assistant_PlayMediaAssist.yaml b/custom_sentences/en/music_assistant_PlayMediaAssist.yaml index 8cbc97b0..3c801b22 100644 --- a/custom_sentences/en/music_assistant_PlayMediaAssist.yaml +++ b/custom_sentences/en/music_assistant_PlayMediaAssist.yaml @@ -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: - " {artist}" - " {album} [by {artist}]" @@ -64,4 +64,4 @@ lists: playlist: wildcard: true radio: - wildcard: true \ No newline at end of file + wildcard: true diff --git a/custom_sentences/en/play_media_on_media_player.yaml b/custom_sentences/en/play_media_on_media_player.yaml index 6d55ec8a..f04d412e 100644 --- a/custom_sentences/en/play_media_on_media_player.yaml +++ b/custom_sentences/en/play_media_on_media_player.yaml @@ -18,4 +18,4 @@ intents: domain: "media_player" lists: query: - wildcard: true \ No newline at end of file + wildcard: true