From f6e508755725a13de1eac33d031e5aa9d3506712 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 5 Feb 2021 10:15:00 +0100 Subject: [PATCH] Move comment about trigger variable to the top (#16397) --- source/_docs/scripts.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_docs/scripts.markdown b/source/_docs/scripts.markdown index 11d25da7caa..2b6b75b3fe3 100644 --- a/source/_docs/scripts.markdown +++ b/source/_docs/scripts.markdown @@ -5,6 +5,8 @@ description: "Documentation for the Home Assistant Script Syntax." Scripts are a sequence of actions that Home Assistant will execute. Scripts are available as an entity through the standalone [Script component] but can also be embedded in [automations] and [Alexa/Amazon Echo] configurations. +When the script is executed within an automation the `trigger` variable is available. See [Available-Trigger-Data](/docs/automation/templating/#available-trigger-data). + The script syntax basic structure is a list of key/value maps that contain actions. If a script contains only 1 action, the wrapping list can be omitted. ```yaml @@ -62,7 +64,7 @@ Scripts may also use a shortcut syntax for activating scenes instead of calling ## Variables -The variables command allows you to set/override variables that will be accessible by templates in actions after it. See also [script variables] for how to define variables accessible in the entire script. +The variables action allows you to set/override variables that will be accessible by templates in actions after it. See also [script variables] for how to define variables accessible in the entire script. {% raw %} @@ -141,8 +143,6 @@ All forms accept templates. These actions allow a script to wait for entities in the system to be in a certain state as specified by a template, or some event to happen as expressed by one or more triggers. -When used within an automation the `trigger` variable is available. See [Available-Trigger-Data](/docs/automation/templating/#available-trigger-data). - ### Wait Template This action evaluates the template, and if true, the script will continue. If not, then it will wait until it is true.