Skip to content

Add battery_capacity_kwh field - #311

Closed
zer0stars wants to merge 1 commit into
mainfrom
add-battery-capacity-kwh
Closed

zer0stars wants to merge 1 commit into
mainfrom
add-battery-capacity-kwh

Conversation

@zer0stars

Copy link
Copy Markdown
Member

Summary

  • Adds battery_capacity_kwh as a first-class field, mirroring the existing fuel_tank_capacity_gal pattern
  • Added to DrivlyVINResponse (float64), Vincario GetMetadata() map, and VehicleInfo struct

Test plan

  • Verify go build ./... passes
  • Verify go test -race ./... passes
  • Confirm Drivly VIN decode populates batteryCapacityKwh for a known EV VIN

Add BatteryCapacityKwh to DrivlyVINResponse, Vincario metadata map,
and VehicleInfo struct so EV battery capacity is a first-class field.
zer0stars added a commit that referenced this pull request Sep 14, 2026
The battery_capacity_kwh field #311 added to VehicleInfo was not gofmt
aligned. The set of decode sources #312 refuses to create templates from
now has a unit test, so adding or dropping a provider there is a visible
change.
@zer0stars

Copy link
Copy Markdown
Member Author

Folded into #314 so device-definitions-api has one open PR for this work. The commit is preserved there through merge commit ede41b8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants