From 5c94df82c9925bd035e308f1ee12148183a5838d Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Tue, 10 Aug 2021 18:18:26 +0200 Subject: [PATCH] Small fix for using a less confusing var name. --- components/xiaomi_bslamp2/light/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(