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
@@ -32,9 +32,7 @@ variables:
person_entity: !input person_entity
person_name: "{{ states[person_entity].name }}"
condition:
condition: template
value_template: "{{ trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
condition: "{{ trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
action:
domain: mobile_app