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:
2025-11-05 17:24:38 -08:00
parent 89d268b3f4
commit cfddf9145d

View File

@@ -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: