Skip to content

Commit 12d8b5b

Browse files
Fix exclude on threshold blueprint
1 parent dd5651d commit 12d8b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/blueprints/battery_notes_battery_threshold.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ triggers:
8787
conditions:
8888
- condition: template
8989
value_template: |-
90-
{{ trigger.event.data.device_id not in excluded_devices}}
90+
{{ excluded_devices == none or excluded_devices | length == 0 or trigger.event.data.device_id not in excluded_devices }}
9191
- condition: template
9292
value_template: |-
9393
{{ not include_devices_enabled or trigger.event.data.device_id in include_devices }}

0 commit comments

Comments
 (0)