mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 14:38:10 +01:00
[config] Fix crash with empty substitutions block (#7612)
This commit is contained in:
parent
d6b96ad51d
commit
7004053538
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ def validate_config(
|
||||||
from esphome.components import substitutions
|
from esphome.components import substitutions
|
||||||
|
|
||||||
result[CONF_SUBSTITUTIONS] = {
|
result[CONF_SUBSTITUTIONS] = {
|
||||||
**config.get(CONF_SUBSTITUTIONS, {}),
|
**(config.get(CONF_SUBSTITUTIONS) or {}),
|
||||||
**command_line_substitutions,
|
**command_line_substitutions,
|
||||||
}
|
}
|
||||||
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
|
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
|
||||||
|
|
Loading…
Reference in a new issue