Skip to content

Commit 2ddeb7b

Browse files
noviriumfabaff
authored andcommitted
Added quotes around states in examples (home-assistant#870)
These examples in the tutorial didn't actually work - adding the quote marks around the state names fixed it.
1 parent 5bf4776 commit 2ddeb7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/getting-started/automation-create-first.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ automation:
3737
condition:
3838
condition: state
3939
entity_id: group.all_devices
40-
state: home
40+
state: 'home'
4141
action:
4242
service: light.turn_on
4343
```
@@ -66,7 +66,7 @@ automation:
6666
condition:
6767
condition: state
6868
entity_id: group.all_devices
69-
state: home
69+
state: 'home'
7070
action:
7171
service: light.turn_on
7272
entity_id: group.living_room
@@ -93,7 +93,7 @@ automation:
9393
condition:
9494
condition: state
9595
entity_id: group.all_devices
96-
state: home
96+
state: 'home'
9797
action:
9898
service: homeassistant.turn_on
9999
entity_id: group.living_room

0 commit comments

Comments
 (0)