mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Merge branch 'dev' into sha256_ota
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
substitutions:
|
||||
substituted: 99
|
||||
var1: '1'
|
||||
var2: '2'
|
||||
var21: '79'
|
||||
value: 33
|
||||
values: 44
|
||||
|
||||
esphome:
|
||||
name: test
|
||||
test_list:
|
||||
@@ -19,3 +23,6 @@ test_list:
|
||||
- ${ undefined_var }
|
||||
- key1: 1
|
||||
key2: 2
|
||||
- Literal $values ${are not substituted}
|
||||
- ["list $value", "${is not}", "${substituted}"]
|
||||
- {"$dictionary": "$value", "${is not}": "${substituted}"}
|
||||
|
||||
@@ -2,9 +2,12 @@ esphome:
|
||||
name: test
|
||||
|
||||
substitutions:
|
||||
substituted: 99
|
||||
var1: "1"
|
||||
var2: "2"
|
||||
var21: "79"
|
||||
value: 33
|
||||
values: 44
|
||||
|
||||
test_list:
|
||||
- "$var1"
|
||||
@@ -21,3 +24,6 @@ test_list:
|
||||
- ${ undefined_var }
|
||||
- key${var1}: 1
|
||||
key${var2}: 2
|
||||
- !literal Literal $values ${are not substituted}
|
||||
- !literal ["list $value", "${is not}", "${substituted}"]
|
||||
- !literal {"$dictionary": "$value", "${is not}": "${substituted}"}
|
||||
|
||||
@@ -22,3 +22,6 @@ test_list:
|
||||
- The pin number is 18
|
||||
- The square root is: 5.0
|
||||
- The number is 80
|
||||
- ord("a") = 97
|
||||
- chr(97) = a
|
||||
- len([1,2,3]) = 3
|
||||
|
||||
@@ -20,3 +20,6 @@ test_list:
|
||||
- The pin number is ${pin.number}
|
||||
- The square root is: ${math.sqrt(area)}
|
||||
- The number is ${var${numberOne} + 1}
|
||||
- ord("a") = ${ ord("a") }
|
||||
- chr(97) = ${ chr(97) }
|
||||
- len([1,2,3]) = ${ len([1,2,3]) }
|
||||
|
||||
Reference in New Issue
Block a user