mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 06:43:48 +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):
|
||||
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:
|
||||
signature = create_grouping_signature({platform: buses}, platform)
|
||||
# Only add to grouped_components if signature is non-empty
|
||||
# (empty means component has no valid bus configurations)
|
||||
if signature:
|
||||
grouped_components[(platform, signature)].append(component)
|
||||
else:
|
||||
signature = "no_buses"
|
||||
|
||||
# Add to grouped components (including those with no buses)
|
||||
if signature:
|
||||
grouped_components[(platform, signature)].append(component)
|
||||
|
||||
# Print detailed grouping plan
|
||||
print("\nGrouping Plan:")
|
||||
|
Reference in New Issue
Block a user