Use condition shorthand notations

This commit is contained in:
2022-05-07 10:41:32 +03:00
parent bd28132229
commit 4272699dc7
10 changed files with 16 additions and 48 deletions
+1 -3
View File
@@ -19,9 +19,7 @@ script:
tapo_bedroom_toggle:
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr('camera.bedroom_hd', 'privacy_mode') == 'off' }}"
- conditions: "{{ state_attr('camera.bedroom_hd', 'privacy_mode') == 'off' }}"
sequence:
- service: script.tapo_bedroom_off