mirror of
https://github.com/esphome/esphome.git
synced 2025-10-21 19:23:45 +01:00
no memory when tatget branch does not have
This commit is contained in:
@@ -304,9 +304,9 @@ def create_detailed_breakdown_table(
|
|||||||
for comp, target_flash, pr_flash, delta in changed_components[:20]:
|
for comp, target_flash, pr_flash, delta in changed_components[:20]:
|
||||||
target_str = format_bytes(target_flash)
|
target_str = format_bytes(target_flash)
|
||||||
pr_str = format_bytes(pr_flash)
|
pr_str = format_bytes(pr_flash)
|
||||||
change_str = format_change(
|
# Only apply threshold to ESPHome components, not framework/infrastructure
|
||||||
target_flash, pr_flash, threshold=COMPONENT_CHANGE_THRESHOLD
|
threshold = COMPONENT_CHANGE_THRESHOLD if comp.startswith("[esphome]") else None
|
||||||
)
|
change_str = format_change(target_flash, pr_flash, threshold=threshold)
|
||||||
lines.append(f"| `{comp}` | {target_str} | {pr_str} | {change_str} |")
|
lines.append(f"| `{comp}` | {target_str} | {pr_str} | {change_str} |")
|
||||||
|
|
||||||
if len(changed_components) > 20:
|
if len(changed_components) > 20:
|
||||||
|
Reference in New Issue
Block a user