1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-22 19:53:46 +01:00
This commit is contained in:
J. Nick Koston
2025-10-17 15:12:36 -10:00
parent 8762d7cf0e
commit 95a0c9594f
2 changed files with 13 additions and 3 deletions

View File

@@ -238,7 +238,7 @@ def create_detailed_breakdown_table(
# Combine all components from both analyses
all_components = set(target_analysis.keys()) | set(pr_analysis.keys())
# Filter to components that have changed or are significant
# Filter to components that have changed
changed_components = []
for comp in all_components:
target_mem = target_analysis.get(comp, {})
@@ -247,8 +247,8 @@ def create_detailed_breakdown_table(
target_flash = target_mem.get("flash_total", 0)
pr_flash = pr_mem.get("flash_total", 0)
# Include if component has changed or is significant (> 1KB)
if target_flash != pr_flash or target_flash > 1024 or pr_flash > 1024:
# Only include if component has changed
if target_flash != pr_flash:
delta = pr_flash - target_flash
changed_components.append((comp, target_flash, pr_flash, delta))