mirror of
https://github.com/home-assistant/frontend.git
synced 2026-08-31 05:52:37 +00:00
A percentage has a real ceiling the way zero is a real floor, but the gap that keeps series off the plot edges did not know that: a battery reading 20-100% rounded out to an axis labelled up to 120%, and one sitting flat at 100% — a device left on the charger — reached 160%. Recognise the unit at the two line-chart call sites and hold the axis at 100, mirroring the existing zero clamp. Only while the data stays under it, since power factor is also reported in % and is signed.