diff --git a/src/jukebox/components/jingle/jinglemp3/__init__.py b/src/jukebox/components/jingle/jinglemp3/__init__.py index 1dc650380..14b73119b 100644 --- a/src/jukebox/components/jingle/jinglemp3/__init__.py +++ b/src/jukebox/components/jingle/jinglemp3/__init__.py @@ -1,6 +1,4 @@ -""" -Generic MP3 jingle Service for jingle.JingleFactory -""" +"""Generic MP3 jingle Service for jingle.JingleFactory""" import logging import subprocess import jukebox.plugs as plugin diff --git a/src/jukebox/components/playermpd/playcontentcallback.py b/src/jukebox/components/playermpd/playcontentcallback.py index ce5a1b8fb..9e62dc27d 100644 --- a/src/jukebox/components/playermpd/playcontentcallback.py +++ b/src/jukebox/components/playermpd/playcontentcallback.py @@ -14,9 +14,7 @@ class PlayCardState(Enum): class PlayContentCallbacks(Generic[STATE], CallbackHandler): - """ - Callbacks are executed in various play functions - """ + """Callbacks are executed in various play functions""" def register(self, func: Callable[[str, STATE], None]): """ diff --git a/src/jukebox/components/rfid/cardutils.py b/src/jukebox/components/rfid/cardutils.py index 7aaa0c0e6..dadc6b4b6 100644 --- a/src/jukebox/components/rfid/cardutils.py +++ b/src/jukebox/components/rfid/cardutils.py @@ -25,9 +25,11 @@ def decode_card_command(cfg_rpc_cmd: Mapping, logger: logging.Logger = log): def card_command_to_str(cfg_rpc_cmd: Mapping, long=False) -> List[str]: - """Returns a list of strings with [card_action, ignore_same_id_delay, ignore_card_removal_action] + """ + Returns a list of strings with [card_action, ignore_same_id_delay, ignore_card_removal_action] - The last two parameters are only present, if *long* is True and if they are present in the cfg_rpc_cmd""" + The last two parameters are only present, if *long* is True and if they are present in the cfg_rpc_cmd + """ action = decode_card_command(cfg_rpc_cmd) readable = [utils.rpc_call_to_str(action)] if long: diff --git a/src/jukebox/components/volume/__init__.py b/src/jukebox/components/volume/__init__.py index 807cb73a1..655e858c7 100644 --- a/src/jukebox/components/volume/__init__.py +++ b/src/jukebox/components/volume/__init__.py @@ -107,7 +107,7 @@ class SoundCardConnectCallbacks(CallbackHandler): * new sound card gets connected """ - + def register(self, func: Callable[[str, str], None]): """ Add a new callback function :attr:`func`. @@ -298,7 +298,7 @@ class OutputChangeCallbackHandler(CallbackHandler): * audio sink is changed """ - + def register(self, func: Callable[[str, str, int, int], None]): """ Add a new callback function :attr:`func`. @@ -330,7 +330,7 @@ class OutputVolumeCallbackHandler(CallbackHandler): * audio volume level is changed """ - + def register(self, func: Callable[[int, bool, bool], None]): """ Add a new callback function :attr:`func`.