From 491cee2892a9e0af0e7798dbe853ca7252963131 Mon Sep 17 00:00:00 2001 From: DubhAd Date: Mon, 19 Mar 2018 11:14:14 +0000 Subject: [PATCH] Tweaked automations (#4951) Added comment about why we don't use `-` before the first `service:` line. Removed the `-` from the last example's service_template --- source/_docs/automation/examples.markdown | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/_docs/automation/examples.markdown b/source/_docs/automation/examples.markdown index 9e28e0b3e76..2e2ade256f3 100644 --- a/source/_docs/automation/examples.markdown +++ b/source/_docs/automation/examples.markdown @@ -38,6 +38,7 @@ automation: after: '16:00:00' before: '23:00:00' action: + # With a single service call, we don't need a '-' before service - though you can if you want to service: homeassistant.turn_on entity_id: group.living_room @@ -76,9 +77,9 @@ automation: event_data: entity_id: binary_sensor.cube_158d000103a3de action: - - service_template: notify.pushover - data_template: - title: "Cube event detected" - message: "Cube has triggered this event: {{ trigger.event }}" + service_template: notify.pushover + data_template: + title: "Cube event detected" + message: "Cube has triggered this event: {{ trigger.event }}" ``` {% endraw %}