mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 16:27:44 +01:00
Do two substitutions passes to allow substitutions inside substitutions (#3583)
This commit is contained in:
parent
988f15e6af
commit
f564be6aea
@ -679,6 +679,7 @@ def validate_config(config, command_line_substitutions) -> Config:
|
||||
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
|
||||
try:
|
||||
substitutions.do_substitution_pass(config, command_line_substitutions)
|
||||
substitutions.do_substitution_pass(config, command_line_substitutions)
|
||||
except vol.Invalid as err:
|
||||
result.add_error(err)
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user