From 74df4bd509fe2927091a17942b7628a6994d051d Mon Sep 17 00:00:00 2001 From: Lennard Beers Date: Fri, 7 Jun 2024 01:49:05 +0200 Subject: [PATCH] fix: sound mode scripts not being used --- custom_components/template_media_player/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/template_media_player/media_player.py b/custom_components/template_media_player/media_player.py index 98692f6..6251706 100644 --- a/custom_components/template_media_player/media_player.py +++ b/custom_components/template_media_player/media_player.py @@ -416,7 +416,7 @@ def source_list(self) -> list[str]: @property def sound_mode_list(self) -> list | list[str] | None: - if self._sound_mode_scripts is None: + if self._sound_mode_scripts is not None: return list(self._sound_mode_scripts.keys()) if self.base_media_player_entity is not None: