From 110f61ffbaf60ce878ad2708d46ecf0ba1bf95b2 Mon Sep 17 00:00:00 2001 From: arretx <32052562+arretx@users.noreply.github.com> Date: Sat, 30 Sep 2017 11:43:57 -0700 Subject: [PATCH] Comment Line Fix (#3470) * Comment Line Fix The commented line wasn't being displayed as a greyed out line, rather, it's red, and since the line truncates in the display, it looks like the word "later" is the first line in the script. * Add `script` and other minor changes --- source/_components/script.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_components/script.markdown b/source/_components/script.markdown index b8ad2d156cc..4b0fa016dce 100644 --- a/source/_components/script.markdown +++ b/source/_components/script.markdown @@ -11,11 +11,9 @@ logo: home-assistant.png ha_category: Automation --- -The script component allows users to specify a sequence of actions to be executed by Home Assistant when turned on. The script component will create an entity for each script and allow them to be controlled via services. +The `script` component allows users to specify a sequence of actions to be executed by Home Assistant when turned on. The script component will create an entity for each script and allow them to be controlled via services. -The sequence of actions is specified using the [Home Assistant Script Syntax]. - -[Home Assistant Script Syntax]: /getting-started/scripts/ +The sequence of actions is specified using the [Home Assistant Script Syntax](/getting-started/scripts/). ```yaml # Example configuration.yaml entry @@ -33,7 +31,8 @@ The preferred way to separate words for better readability is to use underscore

```yaml -  # Turns on the bedroom lights and then the living room lights 1 minute later +script:  + # Turns on the bedroom lights and then the living room lights 1 minute later wakeup: alias: Wake Up sequence: @@ -99,6 +98,7 @@ automation: ``` Using the variables in the script requires the use of `data_template`: + ```yaml # Example configuration.yaml entry script: