mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Do two substitutions passes to allow substitutions inside substitutions (#3583)
This commit is contained in:
parent
988f15e6af
commit
f564be6aea
1 changed files with 1 additions and 0 deletions
|
@ -679,6 +679,7 @@ def validate_config(config, command_line_substitutions) -> Config:
|
||||||
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
|
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
|
||||||
try:
|
try:
|
||||||
substitutions.do_substitution_pass(config, command_line_substitutions)
|
substitutions.do_substitution_pass(config, command_line_substitutions)
|
||||||
|
substitutions.do_substitution_pass(config, command_line_substitutions)
|
||||||
except vol.Invalid as err:
|
except vol.Invalid as err:
|
||||||
result.add_error(err)
|
result.add_error(err)
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue