Browse Source

Small fix for using a less confusing var name.

pull/47/head
Maurice Makaay 3 years ago
parent
commit
5c94df82c9
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      components/xiaomi_bslamp2/light/__init__.py

+ 3
- 3
components/xiaomi_bslamp2/light/__init__.py View File

@ -178,10 +178,10 @@ USED_PRESETS = []
def register_preset_action(value): def register_preset_action(value):
if "group" in value and not isinstance(value["group"], Lambda): if "group" in value and not isinstance(value["group"], Lambda):
if "preset" in value and not isinstance(value["preset"], Lambda): if "preset" in value and not isinstance(value["preset"], Lambda):
preset_id = [value['group'], value['preset']]
preset_data = [value['group'], value['preset']]
else: else:
preset_id = [value["group"], None]
USED_PRESETS.append(preset_id)
preset_data = [value["group"], None]
USED_PRESETS.append(preset_data)
return value return value
@automation.register_action( @automation.register_action(


Loading…
Cancel
Save