Skip to content

Commit

Permalink
Removed unnecessary clear_notification calls
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennec78 committed May 19, 2024
1 parent a1504c3 commit e0e781c
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions Automatic Gate/automatic-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,6 @@ action:
- service: cover.close_cover
target:
entity_id: !input gate
# Remove the notification received by the user when his itinerary was started
- service: "{{ notify_device }}"
data:
message: clear_notification
data:
tag: itinerary
# Stop the whole script as it ran successfully
- stop: Successful
# Get the names of the persons being awaited
- variables:
awaiting_sensors: >-
Expand All @@ -529,12 +521,12 @@ action:
- wait_for_trigger:
- platform: template
value_template: "{{ is_state(gate, ['off', 'closed', 'closing']) }}"
# Remove the notification received by the user when his itinerary was started or while the gate was awaiting another user
- service: "{{ notify_device }}"
data:
message: clear_notification
data:
tag: itinerary
# Remove the notification received by the user when the gate was awaiting another user
- service: "{{ notify_device }}"
data:
message: clear_notification
data:
tag: itinerary
# If the automatic closing input is set to false
else:
# Wait for the user to leave home
Expand Down

0 comments on commit e0e781c

Please sign in to comment.