feat: add multi-battery monitoring

- Report battery data for individual devices
- Select a representative battery for legacy fields and alerts
- Average named battery data independently
- Display multiple batteries in system charts
- Add cross-platform coverage and transport tests
This commit is contained in:
henrygd
2026-08-16 13:52:29 -04:00
parent bfa6a1e361
commit 87405c5f10
18 changed files with 434 additions and 373 deletions

View File

@@ -8,6 +8,6 @@ func HasReadableBattery() bool {
return false
}
func GetBatteryStats() (uint8, uint8, error) {
return 0, 0, errors.ErrUnsupported
func GetBatteryStats() ([]Battery, error) {
return nil, errors.ErrUnsupported
}