From: Marcel van der Veldt Date: Tue, 29 Sep 2020 09:22:58 +0000 (+0200) Subject: linting X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=1b603f02bea0ee8de6831661a010f5bf5e74fc42;p=music-assistant-server.git linting --- diff --git a/.github/dependabot.yml b/.github/dependabot.yml index efc57bd1..8c801b21 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,4 +7,4 @@ updates: - package-ecosystem: "pip" directory: "/" schedule: - interval: daily \ No newline at end of file + interval: weekly \ No newline at end of file diff --git a/.gitignore b/.gitignore index b0d36f52..f8f10376 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ venv/ .venv .mypy_cache/ .tox/ -.egg-info/ +*.egg-info/ diff --git a/music_assistant/models/player_state.py b/music_assistant/models/player_state.py index 3bdbbab3..46517d0a 100755 --- a/music_assistant/models/player_state.py +++ b/music_assistant/models/player_state.py @@ -359,7 +359,8 @@ class PlayerState: @callback def get_player_config_entries(self): """Get final/calculated config entries for a player.""" - entries = [item for item in self.player.config_entries] + entries = [] + entries += self.player.config_entries # append power control config entries power_controls = self.mass.player_manager.get_player_controls( PlayerControlType.POWER diff --git a/music_assistant/providers/group_player/__init__.py b/music_assistant/providers/group_player/__init__.py index 9792ba5f..78848994 100644 --- a/music_assistant/providers/group_player/__init__.py +++ b/music_assistant/providers/group_player/__init__.py @@ -427,10 +427,9 @@ class GroupPlayer(Player): if not master_player_id: LOGGER.warning("Synchronization of playback aborted: no master player.") return - else: - LOGGER.debug( - "Synchronize playback of group using master player %s", master_player_id - ) + LOGGER.debug( + "Synchronize playback of group using master player %s", master_player_id + ) master_player = self.mass.player_manager.get_player(master_player_id) # wait until master is playing