diff --git a/components/xiaomi_bslamp2/light/__init__.py b/components/xiaomi_bslamp2/light/__init__.py index 926d228..43927c0 100644 --- a/components/xiaomi_bslamp2/light/__init__.py +++ b/components/xiaomi_bslamp2/light/__init__.py @@ -178,10 +178,10 @@ USED_PRESETS = [] def register_preset_action(value): if "group" in value and not isinstance(value["group"], Lambda): if "preset" in value and not isinstance(value["preset"], Lambda): - preset_id = [value['group'], value['preset']] + preset_data = [value['group'], value['preset']] else: - preset_id = [value["group"], None] - USED_PRESETS.append(preset_id) + preset_data = [value["group"], None] + USED_PRESETS.append(preset_data) return value @automation.register_action(