Fix adaptive lighting switch validation
Adds check for empty dict to prevent entity_id errors when adaptive lighting switch is not configured. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -96,7 +96,7 @@ action:
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ adaptive_lighting_switch != none }}"
|
||||
value_template: "{{ adaptive_lighting_switch != none and adaptive_lighting_switch != {} }}"
|
||||
then:
|
||||
- action: adaptive_lighting.apply
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user