feat: add DSP Config changed event (#2079)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Mon, 31 Mar 2025 20:04:52 +0000 (22:04 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 20:04:52 +0000 (22:04 +0200)
feat: send `PLAYER_DSP_CONFIG_UPDATED` on DSP changes

music_assistant/controllers/config.py

index bdd52e0b4903bfa85de08b79e55009ddb38af7f4..8fda17e0f4ef8e8aa353004845353fac1aba2f89 100644 (file)
@@ -520,6 +520,12 @@ class ConfigController:
         # Save and apply the new config to the player
         self.set(f"{CONF_PLAYER_DSP}/{player_id}", config.to_dict())
         await self.mass.players.on_player_dsp_change(player_id)
+        # send the dsp config updated event
+        self.mass.signal_event(
+            EventType.PLAYER_DSP_CONFIG_UPDATED,
+            object_id=player_id,
+            data=config,
+        )
         return config
 
     def create_default_player_config(