mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 06:43:48 +01:00
prefix
This commit is contained in:
@@ -242,6 +242,9 @@ def merge_component_configs(
|
|||||||
# Prefix substitution references throughout the config
|
# Prefix substitution references throughout the config
|
||||||
comp_data = prefix_substitutions_in_dict(comp_data, comp_name)
|
comp_data = prefix_substitutions_in_dict(comp_data, comp_name)
|
||||||
|
|
||||||
|
# Prefix all IDs and ID references to avoid conflicts
|
||||||
|
comp_data = prefix_ids_in_dict(comp_data, comp_name)
|
||||||
|
|
||||||
# Use ESPHome's merge_config to merge this component into the result
|
# Use ESPHome's merge_config to merge this component into the result
|
||||||
# merge_config handles list merging with ID-based deduplication automatically
|
# merge_config handles list merging with ID-based deduplication automatically
|
||||||
merged_config_data = merge_config(merged_config_data, comp_data)
|
merged_config_data = merge_config(merged_config_data, comp_data)
|
||||||
|
Reference in New Issue
Block a user