From f7ba09f56fe5296a07803489cf6d19e745f5c665 Mon Sep 17 00:00:00 2001 From: cociweb Date: Tue, 28 May 2024 11:09:26 +0200 Subject: [PATCH] Turn off Display and visualization by default (#1318) --- music_assistant/server/providers/slimproto/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/music_assistant/server/providers/slimproto/__init__.py b/music_assistant/server/providers/slimproto/__init__.py index 15815c15..fcba7ecb 100644 --- a/music_assistant/server/providers/slimproto/__init__.py +++ b/music_assistant/server/providers/slimproto/__init__.py @@ -107,7 +107,7 @@ CONF_VISUALIZATION = "visualization" DEFAULT_PLAYER_VOLUME = 20 DEFAULT_SLIMPROTO_PORT = 3483 -DEFAULT_VISUALIZATION = SlimVisualisationType.SPECTRUM_ANALYZER.value +DEFAULT_VISUALIZATION = SlimVisualisationType.NONE CONF_ENTRY_DISPLAY = ConfigEntry( @@ -905,10 +905,14 @@ class SlimprotoProvider(PlayerProvider): async def _set_display(self, slimplayer: SlimClient) -> None: """Set the display config for a player.""" display_enabled = self.mass.config.get_raw_player_config_value( - slimplayer.player_id, CONF_DISPLAY, True + slimplayer.player_id, + CONF_ENTRY_DISPLAY.key, + CONF_ENTRY_DISPLAY.default_value, ) visualization = self.mass.config.get_raw_player_config_value( - slimplayer.player_id, CONF_VISUALIZATION, DEFAULT_VISUALIZATION + slimplayer.player_id, + CONF_ENTRY_VISUALIZATION.key, + CONF_ENTRY_VISUALIZATION.default_value, ) await slimplayer.configure_display( visualisation=SlimVisualisationType(visualization), disabled=not display_enabled -- 2.34.1