Fixes
Battery capacity input now accepts any integer Wh.
The capacity Number entity previously had a 25-Wh step size, so values like `545` (Bosch PowerTube 545) were rejected — only multiples of 25 like 525 or 550 were accepted. Step is now 1 Wh, so any value between 100 and 1500 is valid.
Per-ride consumption percentage now follows capacity changes.
When the capacity was edited later (e.g. 750 → 545), already-stored ride entries kept the OLD percentage frozen in the cache. Now both layers refresh the value:
- `set_battery_capacity` walks every persisted consumption entry, rewrites `capacity_wh` + `percentage` against the new value, saves to disk, and pushes a coordinator update so sensors and the card see the new % immediately.
- The websocket handler additionally re-derives `capacity_wh` + `percentage` on the fly from the current capacity before sending data to the card. Safety net for legacy entries from earlier versions.
The raw `consumed_wh` value is preserved unchanged — it represents the actual Wh delivered to that ride.
Installation
Update via HACS, restart Home Assistant, hard-refresh the browser.