You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.