mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 02:00:55 +00:00
[config] Fix crash with empty substitutions block (#7612)
This commit is contained in:
parent
c9e5919739
commit
56fa6fef85
@ -782,7 +782,7 @@ def validate_config(
|
||||
from esphome.components import substitutions
|
||||
|
||||
result[CONF_SUBSTITUTIONS] = {
|
||||
**config.get(CONF_SUBSTITUTIONS, {}),
|
||||
**(config.get(CONF_SUBSTITUTIONS) or {}),
|
||||
**command_line_substitutions,
|
||||
}
|
||||
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user