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:
|
sequence:
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ adaptive_lighting_switch != none }}"
|
value_template: "{{ adaptive_lighting_switch != none and adaptive_lighting_switch != {} }}"
|
||||||
then:
|
then:
|
||||||
- action: adaptive_lighting.apply
|
- action: adaptive_lighting.apply
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user