mirror of
https://github.com/esphome/esphome.git
synced 2025-10-15 08:13:51 +01:00
fix merge
This commit is contained in:
@@ -233,7 +233,7 @@ def merge_component_configs(
|
|||||||
del comp_data["packages"]
|
del comp_data["packages"]
|
||||||
|
|
||||||
# Prefix substitutions in component data
|
# Prefix substitutions in component data
|
||||||
if "substitutions" in comp_data:
|
if "substitutions" in comp_data and comp_data["substitutions"] is not None:
|
||||||
prefixed_subs = {}
|
prefixed_subs = {}
|
||||||
for sub_name, sub_value in comp_data["substitutions"].items():
|
for sub_name, sub_value in comp_data["substitutions"].items():
|
||||||
prefixed_subs[f"{comp_name}_{sub_name}"] = sub_value
|
prefixed_subs[f"{comp_name}_{sub_name}"] = sub_value
|
||||||
|
Reference in New Issue
Block a user