Skip to content
 
 

Repository files navigation

Summary

Make CustomerUpdatePackagePubKey optional in PeblarSystemInformation.

Some white-label Peblar devices (for example ChargePoint-branded variants) do not include this field in /api/v1/system/information. The current strict model crashes deserialization with a mashumaro.exceptions.MissingField error.

Changes

  • Change customer_update_package_public_key from required str to optional str | None with default=None.
  • Add regression test that:
    • loads a realistic system_information payload fixture,
    • removes CustomerUpdatePackagePubKey,
    • verifies parsing still succeeds and value becomes None.
  • Add fixture file used by that regression test.

Why

This keeps backward compatibility for devices that return the field, while making parsing tolerant for white-label firmware variants that omit it.

Validation

My white-label (Chargepoint) charger has been connected to HA succesfully and has been stable for the past days

About

Temporary fork to contribute white label compatibility fixes upstream.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages