Skip to content

Commit

Permalink
Merge branch 'master' into FormatViolation-serialization-bug-with-OCP…
Browse files Browse the repository at this point in the history
…P-1.6-J
  • Loading branch information
Jared-Newell-Mobility authored Oct 19, 2023
2 parents daee345 + ad79b31 commit cda788e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change log


- [#381](https://github.com/mobilityhouse/ocpp/issues/381) FormatViolation serialization bug with OCPP 1.6-J

## 0.21.0 (2023-10-19)

- [#492] Minor fixes _handle_call doc string - Thanks @drc38

- [#485](https://github.com/mobilityhouse/ocpp/issues/485) Update documents for 2.0.1 to lastest; removed 2.0 docs
- [#412](https://github.com/mobilityhouse/ocpp/issues/412) Add default value to 1.6 AuthorizationData datatype, id_tag_info
- [#141](https://github.com/mobilityhouse/ocpp/issues/141) Add to docs OCPP 1.6 Security White Paper Ed 2
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author = "Auke Willem Oosterhoff"

# The full version, including alpha/beta/rc tags
release = "0.20.0"
release = "0.21.0"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def _handle_call(self, msg):
First the '_on_action' hook is executed and its response is returned to
the client. If there is no '_on_action' hook for Action in the message
a CallError with a NotImplemtendError is returned.
a CallError with a NotSupportedError is returned.
Next the '_after_action' hook is executed.
Expand Down
4 changes: 2 additions & 2 deletions ocpp/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ def to_exception(self):
)

raise UnknownCallErrorCodeError(
"Error code '%s' is not defined by the" " OCPP specification",
self.error_code,
f"Error code '{self.error_code}' is not defined by the"
" OCPP specification"
)

def __repr__(self):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ocpp"
version = "0.20.0"
version = "0.21.0"
description = "Python package implementing the JSON version of the Open Charge Point Protocol (OCPP)."
authors = [
"André Duarte <[email protected]>",
Expand Down

0 comments on commit cda788e

Please sign in to comment.