From 2e02b3c014a0d0b7f0d97d22e561f0dd48885edd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 8 Oct 2025 19:50:06 -1000 Subject: [PATCH] prefix --- script/merge_component_configs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/merge_component_configs.py b/script/merge_component_configs.py index 59ad0c5542..7ef54e5f31 100755 --- a/script/merge_component_configs.py +++ b/script/merge_component_configs.py @@ -242,6 +242,9 @@ def merge_component_configs( # Prefix substitution references throughout the config 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 # merge_config handles list merging with ID-based deduplication automatically merged_config_data = merge_config(merged_config_data, comp_data)