Skip to content

Commit

Permalink
Bug: CONF_SCENE_VALUES can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurker00 committed Dec 15, 2024
1 parent e35de4e commit 55482aa
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 @@ -189,7 +189,7 @@ def __init__(

custom_scenes = False
if self.has_config(CONF_SCENE):
if self.has_config(CONF_SCENE_VALUES):
if self.has_config(CONF_SCENE_VALUES) and len(self._config.get(CONF_SCENE_VALUES)):
custom_scenes = True
values_list = list(self._config.get(CONF_SCENE_VALUES))
values_name = list(self._config.get(CONF_SCENE_VALUES).values())
Expand Down

0 comments on commit 55482aa

Please sign in to comment.