mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 23:03:46 +01:00
preen
This commit is contained in:
@@ -351,13 +351,16 @@ def run_grouped_component_tests(
|
|||||||
if platform_filter and not platform.startswith(platform_filter):
|
if platform_filter and not platform.startswith(platform_filter):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Only group if component has valid bus configs
|
# Create signature for this component's bus configuration
|
||||||
|
# Components with no buses get a signature of "no_buses" so they can be grouped together
|
||||||
if buses:
|
if buses:
|
||||||
signature = create_grouping_signature({platform: buses}, platform)
|
signature = create_grouping_signature({platform: buses}, platform)
|
||||||
# Only add to grouped_components if signature is non-empty
|
else:
|
||||||
# (empty means component has no valid bus configurations)
|
signature = "no_buses"
|
||||||
if signature:
|
|
||||||
grouped_components[(platform, signature)].append(component)
|
# Add to grouped components (including those with no buses)
|
||||||
|
if signature:
|
||||||
|
grouped_components[(platform, signature)].append(component)
|
||||||
|
|
||||||
# Print detailed grouping plan
|
# Print detailed grouping plan
|
||||||
print("\nGrouping Plan:")
|
print("\nGrouping Plan:")
|
||||||
|
Reference in New Issue
Block a user