Skip to content

v0.4.0

Choose a tag to compare

@aaearon aaearon released this 01 May 06:41
· 16 commits to main since this release
e108577

What's new

  • set_solar_settings(serial, settings) — write solar PV settings (delays, starting currents) back to the charger
  • grant_upgrade_permission(serial, firmware_update_job_ids) — approve queued firmware update jobs; raises ValueError on empty list
  • UpperLowerLimitSetting, SolarSettings, UserSettings all gain to_dict() that emits only writable fields (no raw, lower, upper, allowedValues noise in PUT bodies)
  • GrantUpgradePermissionParameters is now fully typed (firmware_update_job_ids: list[str]); from_dict handles single-string and list inputs safely

Bug fixes

  • to_dict guards against emitting empty {} objects when nested value is None

Notes

  • Solar settings set_solar_settings PUT currently returns 502 from the cloud API — under investigation in #9. The method and serialisation are correct; the issue is server-side behaviour.