1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 15:12:06 +00:00

Jinja expressions in configs (Take #3) (#8955)

This commit is contained in:
Javier Peletier
2025-07-01 04:57:00 +02:00
committed by GitHub
parent 27c745d5a1
commit 8c34b72b62
21 changed files with 486 additions and 24 deletions

View File

@@ -0,0 +1,17 @@
substitutions:
B: 5
var7: 79
package_result:
- The value of A*B is 35, where A is a package var and B is a substitution in the
root file
- Double substitution also works; the value of var7 is 79, where A is a package
var
local_results:
- The value of B is 5
- 'You will see, however, that
${A} is not substituted here, since
it is out of scope.
'