Skip to content

Commit 110f61f

Browse files
arretxfabaff
authored andcommitted
Comment Line Fix (home-assistant#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
1 parent 7932da4 commit 110f61f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/_components/script.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ logo: home-assistant.png
1111
ha_category: Automation
1212
---
1313

14-
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.
14+
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.
1515

16-
The sequence of actions is specified using the [Home Assistant Script Syntax].
17-
18-
[Home Assistant Script Syntax]: /getting-started/scripts/
16+
The sequence of actions is specified using the [Home Assistant Script Syntax](/getting-started/scripts/).
1917

2018
```yaml
2119
# Example configuration.yaml entry
@@ -33,7 +31,8 @@ The preferred way to separate words for better readability is to use underscore
3331
</p>
3432

3533
```yaml
36-
 # Turns on the bedroom lights and then the living room lights 1 minute later
34+
script: 
35+
# Turns on the bedroom lights and then the living room lights 1 minute later
3736
wakeup:
3837
alias: Wake Up
3938
sequence:
@@ -99,6 +98,7 @@ automation:
9998
```
10099

101100
Using the variables in the script requires the use of `data_template`:
101+
102102
```yaml
103103
# Example configuration.yaml entry
104104
script:

0 commit comments

Comments
 (0)