From f564be6aea4b1482d80f609df72610a0d1e03775 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 22 Jun 2022 08:21:32 +1200 Subject: [PATCH] Do two substitutions passes to allow substitutions inside substitutions (#3583) --- esphome/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/config.py b/esphome/config.py index a878f3ef79..545b805367 100644 --- a/esphome/config.py +++ b/esphome/config.py @@ -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