mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Replace substitutions in substitutions first (#1567)
This commit is contained in:
parent
4d6277330b
commit
6588e9380e
1 changed files with 2 additions and 0 deletions
|
@ -136,4 +136,6 @@ def do_substitution_pass(config, command_line_substitutions):
|
|||
del substitutions[old]
|
||||
|
||||
config[CONF_SUBSTITUTIONS] = substitutions
|
||||
# Move substitutions to the first place to replace substitutions in them correctly
|
||||
config.move_to_end(CONF_SUBSTITUTIONS, False)
|
||||
_substitute_item(substitutions, config, [])
|
||||
|
|
Loading…
Reference in a new issue