mirror of
https://github.com/esphome/esphome.git
synced 2026-02-26 05:53:12 -07:00
Co-authored-by: J. Nick Koston <nick+github@koston.org> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
41 lines
731 B
YAML
41 lines
731 B
YAML
substitutions:
|
|
substituted: 99
|
|
var1: '1'
|
|
var2: '2'
|
|
var21: '79'
|
|
value: 33
|
|
values: 44
|
|
position:
|
|
x: 79
|
|
y: 82
|
|
a: 15
|
|
b: 20
|
|
|
|
esphome:
|
|
name: test
|
|
test_list:
|
|
- '1'
|
|
- '1'
|
|
- '1'
|
|
- '1'
|
|
- 'Values: 1 2'
|
|
- 'Value: 79'
|
|
- 1 + 2
|
|
- 1 * 2
|
|
- 'Undefined var: ${undefined_var}'
|
|
- ${undefined_var}
|
|
- $undefined_var
|
|
- ${ undefined_var }
|
|
- key1: 1
|
|
key2: 2
|
|
- Literal $values ${are not substituted}
|
|
- ["list $value", "${is not}", "${substituted}"]
|
|
- {"$dictionary": "$value", "${is not}": "${substituted}"}
|
|
- |-
|
|
{{{ "x", "79"}, { "y", "82"}}}
|
|
- '{{{"AA"}}}'
|
|
- '"HELLO"'
|
|
- '{ 79, 82 }'
|
|
- a: 15 should be 15, overridden from command line
|
|
b: 20 should stay as 20, not overridden
|