mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
@@ -5,6 +5,9 @@ substitutions:
|
||||
var21: '79'
|
||||
value: 33
|
||||
values: 44
|
||||
position:
|
||||
x: 79
|
||||
y: 82
|
||||
|
||||
esphome:
|
||||
name: test
|
||||
@@ -26,3 +29,7 @@ test_list:
|
||||
- Literal $values ${are not substituted}
|
||||
- ["list $value", "${is not}", "${substituted}"]
|
||||
- {"$dictionary": "$value", "${is not}": "${substituted}"}
|
||||
- |-
|
||||
{{{ "x", "79"}, { "y", "82"}}}
|
||||
- '{{{"AA"}}}'
|
||||
- '"HELLO"'
|
||||
|
||||
@@ -8,6 +8,9 @@ substitutions:
|
||||
var21: "79"
|
||||
value: 33
|
||||
values: 44
|
||||
position:
|
||||
x: 79
|
||||
y: 82
|
||||
|
||||
test_list:
|
||||
- "$var1"
|
||||
@@ -27,3 +30,7 @@ test_list:
|
||||
- !literal Literal $values ${are not substituted}
|
||||
- !literal ["list $value", "${is not}", "${substituted}"]
|
||||
- !literal {"$dictionary": "$value", "${is not}": "${substituted}"}
|
||||
- |- # Test parsing things that look like a python set of sets when rendered:
|
||||
{{{ "x", "${ position.x }"}, { "y", "${ position.y }"}}}
|
||||
- ${ '{{{"AA"}}}' }
|
||||
- ${ '"HELLO"' }
|
||||
|
||||
Reference in New Issue
Block a user