From 3356b3dd63071633afabac9a575c77545a57cbf9 Mon Sep 17 00:00:00 2001 From: ultratoto14 Date: Wed, 18 Nov 2020 11:06:54 +0100 Subject: [PATCH] Wrong check that enable music mode evry time. --- custom_components/localtuya/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index 5401da02b..3eca67481 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -166,7 +166,7 @@ def __init__( else: self._scenes = SCENE_LIST_RGBW_1000 self._effect_list = list(self._scenes.keys()) - if self.has_config(CONF_MUSIC_MODE): + if self._config.get(CONF_MUSIC_MODE): self._effect_list.append(SCENE_MUSIC) @property