Skip to content

Commit

Permalink
Scenes set empty dict as default value instead of none
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Mar 13, 2024
1 parent cfbb913 commit 4d09fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4d09fed

Please sign in to comment.