From 47942fb1665b5cad453d75ce45974189823538e4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 12:47:54 -0500 Subject: [PATCH] Note the upstream spelling in the format_bar citation --- esphome/build_helpers/size_summary.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/esphome/build_helpers/size_summary.py b/esphome/build_helpers/size_summary.py index 8014b9e527..5068e76d2d 100644 --- a/esphome/build_helpers/size_summary.py +++ b/esphome/build_helpers/size_summary.py @@ -4,7 +4,11 @@ from __future__ import annotations def format_bar(used: int, total: int) -> str: - """Match PlatformIO's ``_format_availale_bytes`` (pioupload.py) exactly.""" + """Match PlatformIO's ``_format_availale_bytes`` (pioupload.py) exactly. + + The upstream helper's name really is spelled that way; keep the citation + verbatim so it stays greppable in the PlatformIO source. + """ pct_raw = used / total if total else 0 blocks = 10 filled = min(int(round(blocks * pct_raw)), blocks)