Fix invalid yaml (#2546)

This commit is contained in:
Brant Knudson 2025-02-03 06:10:20 -06:00 committed by GitHub
parent d80e4a1af9
commit a026788585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,16 +227,16 @@ list `[]` by default.
```yaml
# Good
- alias: "Test"
triggers:
- trigger: state
entity_id: binary_sensor.motion
triggers:
- trigger: state
entity_id: binary_sensor.motion
# Bad
- alias: "Test"
triggers:
- trigger: state
entity_id: binary_sensor.motion
condition: []
triggers:
- trigger: state
entity_id: binary_sensor.motion
condition: []
```
### Strings (continued)
@ -311,8 +311,8 @@ actions:
- action: light.turn_on
entity_id: light.living_room
- action: light.turn_on
data:
entity_id: light.living_room
data:
entity_id: light.living_room
```
### Properties that accept a scalar or a list of scalars