Skip to content

Commit a026788

Browse files
authored
Fix invalid yaml (#2546)
1 parent d80e4a1 commit a026788

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/documenting/yaml-style-guide.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,16 @@ list `[]` by default.
227227
```yaml
228228
# Good
229229
- alias: "Test"
230-
triggers:
231-
- trigger: state
232-
entity_id: binary_sensor.motion
230+
triggers:
231+
- trigger: state
232+
entity_id: binary_sensor.motion
233233
234234
# Bad
235235
- alias: "Test"
236-
triggers:
237-
- trigger: state
238-
entity_id: binary_sensor.motion
239-
condition: []
236+
triggers:
237+
- trigger: state
238+
entity_id: binary_sensor.motion
239+
condition: []
240240
```
241241

242242
### Strings (continued)
@@ -311,8 +311,8 @@ actions:
311311
- action: light.turn_on
312312
entity_id: light.living_room
313313
- action: light.turn_on
314-
data:
315-
entity_id: light.living_room
314+
data:
315+
entity_id: light.living_room
316316
```
317317

318318
### Properties that accept a scalar or a list of scalars

0 commit comments

Comments
 (0)