From 99827135a2d9efb307059407355c36e10e613d6f Mon Sep 17 00:00:00 2001 From: drc38 <20024196+drc38@users.noreply.github.com> Date: Thu, 19 Oct 2023 21:06:56 +1300 Subject: [PATCH 1/3] Minor fixes (#492) @Jared-Newell-Mobility new PR from the master branch, for background see #426 --- ocpp/charge_point.py | 2 +- ocpp/messages.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ocpp/charge_point.py b/ocpp/charge_point.py index bdd75ae6e..78f56549e 100644 --- a/ocpp/charge_point.py +++ b/ocpp/charge_point.py @@ -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. diff --git a/ocpp/messages.py b/ocpp/messages.py index e14eebc29..5d6012869 100644 --- a/ocpp/messages.py +++ b/ocpp/messages.py @@ -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): From 4f65694607bb9efc5ac5944a9e4990c470cecd27 Mon Sep 17 00:00:00 2001 From: Jared Newell Date: Thu, 19 Oct 2023 10:07:48 +0200 Subject: [PATCH 2/3] update ChangeLog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a6373ed8..4776f57cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Change log +- [#492](https://github.com/mobilityhouse/ocpp/pull/492/files) Minor fixes - 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 From ad79b31732002877fc822ef69fe571f5b0032740 Mon Sep 17 00:00:00 2001 From: Jared Newell Date: Thu, 19 Oct 2023 10:33:36 +0200 Subject: [PATCH 3/3] Bump to 0.21.0 --- CHANGELOG.md | 4 +++- docs/source/conf.py | 2 +- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4776f57cd..6519f06bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Change log -- [#492](https://github.com/mobilityhouse/ocpp/pull/492/files) Minor fixes - Thanks @drc38 +## 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 diff --git a/docs/source/conf.py b/docs/source/conf.py index d9e19699c..e0041a60b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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 --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index d34e0c690..ef8db3c42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ",