Skip to content

0.30.0

Choose a tag to compare

@darkrain-nl darkrain-nl released this 14 Nov 11:06
· 15 commits to main since this release
0674e6c

Groundwork for 1.0.0: the library now promises only what can be tested on real hardware, and says which names that covers.

Breaking

  • SofarLegacyInverter and the legacy register map are removed. The map was never verified on an older inverter and is known to be off against the G1 spec. Owners of an older inverter are invited to help bring it back: script/query.py <address> --legacy reads the serial number and raw register blocks to share in an issue. PR #97.
  • InverterType.AC, MIC and DCB are removed, along with their module-level aliases in sofar_modbus.variants. Nothing read them. PR #97.
  • LinkTuner is private and its restore() is gone. inverter.link_tuning and inverter.link_stats are unchanged. PR #97.

Changed

  • The register map moves out of sofar_modbus.modern into sofar_modbus, and every public name is exported from the package itself. sofar_modbus.modern keeps thin re-exports for the names in use today and will be removed before 1.0. PR #97.
  • The README has a Public API section: everything in sofar_modbus.__all__ plus sofar_modbus.tuning. Other submodules and underscored names are internal. PR #98.
  • The package carries the Development Status :: 5 - Production/Stable and Typing :: Typed classifiers. PR #98.

No behaviour change for modern inverters; the library snapshots are unchanged. PRs #97 and #98.