mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
d20d613c1d
Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick@koston.org>
22 lines
484 B
YAML
22 lines
484 B
YAML
substitutions:
|
|
include_file: inc1
|
|
x: 3 # override x from inc2.yaml
|
|
|
|
packages:
|
|
my_package: !include
|
|
file: ${include_file + ".yaml"} # includes inc1.yaml
|
|
vars:
|
|
var1: 4
|
|
a: ${x+2}
|
|
b: ${a+1}
|
|
c: 7
|
|
other_package: !include
|
|
file: inc${1+1}.yaml # includes inc2.yaml
|
|
vars:
|
|
y: 4
|
|
|
|
values:
|
|
- From main config, x is $x, y is $y
|
|
- $a $b $c are out of scope here
|
|
- !include ${"inc" + "3.yaml"} # includes inc3.yaml here (not a package)
|