Repository navigation
Highlights
- Fix for #791: a malformed message can no longer end the message loop in
ChargePoint.start(). A Call whose action is a JSON array or object is now answered with aNotSupportedCallError. Deeply nested JSON is now treated as a format violation and logged. Before this fix, either message raised an unhandled exception that ended the session, and could exit a charger process written like the library's examples. Affects 1.6, 2.0.1 and 2.1. By @hippi345 in #792 - The
@onhandler's response can now be passed to the@afterhook (opt-in viainject_response=True) by @OSkrk in #683 - Type annotations throughout,
mypy --strictpasses, and apy.typedmarker is shipped, so type checkers use the package's type hints. By @fjovell-swish in #771 and @Amraa1 in #755
Features
- Log sent and received messages at debug level by @brambo123 in #770
Fixes
- Spell
receiptUrlthe way the 2.1 schemas do by @OSkrk in #780 - Handle v2.1 NotImplemented errors by @OSkrk in #744
- Align v2.1 and v2.0.1 payloads for the ISO 15118 certificate hash data attribute by @OSkrk in #743
- Fix intermittent reconnect failures and missing charge point ID extraction by @rishabhvaish in #752
- Remove duplicate v2.0.1 types by @mdwcrft in #767
- Revert the
create_and_start_charge_pointhelper function by @a-alak in #766
Packaging, CI and chores
- Make Python 3.11 the consistently declared minimum and add the 3.14 classifier by @mdwcrft in #782 (the
python = "^3.11"requirement is unchanged from 2.1.0) - Advertise OCPP 2.1 support in the README by @huangkongsheng in #784
- Replace the deprecated
set-outputcommand and update GitHub Actions versions by @mdwcrft in #789 - Run the CI test matrix on the matrix interpreter and split lint from tests by @mdwcrft in #768
- Makefile respects global poetry installs by @a-alak in #737
- Remove the executable bit from JSON schema files by @a-detiste in #765
- Add OSkrk to CODEOWNERS by @mdwcrft in #785
Dependencies
Dependabot updates: certifi (#787), black (#786, #764), urllib3 (#781, #749), idna (#763), requests (#761, #730), pygments (#760)
Tested as release candidates 2.2.0rc1 and 2.2.0rc2.
Full Changelog: 2.1.0...2.2.0