From 4d09fed846ad1df5023647cc4da6f1c74d57b0dd Mon Sep 17 00:00:00 2001 From: xZetsubou Date: Thu, 14 Mar 2024 01:08:49 +0300 Subject: [PATCH] Scenes set empty dict as default value instead of none --- 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 0c5e226be..3218c7d05 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -164,7 +164,7 @@ def __init__( self._hs = None self._effect = None self._effect_list = [] - self._scenes = None + self._scenes = {} if self.has_config(CONF_SCENE): if self.has_config(CONF_SCENE_VALUES): values_list = list(self._config.get(CONF_SCENE_VALUES))