Skip to content

Commit 8b07918

Browse files
Merge branch 'master' into OCPP-2.0.1-add-additional-reason-codes-from-v1.3
2 parents b231862 + 06e13d7 commit 8b07918

File tree

8 files changed

+19
-7
lines changed

8 files changed

+19
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Change log
22

3+
34
- [#518](https://github.com/mobilityhouse/ocpp/issues/518) OCPP 2.0.1 add additional reason codes from v1.3
5+
=======
6+
## 0.24.0 (2023-12-07)
7+
8+
- [#539](https://github.com/mobilityhouse/ocpp/issues/539) feat: Add ChargePoint._handle_call return value. Thanks [@wafa-yah](https://github.com/wafa-yah)
9+
- [#266](https://github.com/mobilityhouse/ocpp/issues/266) fix: Central System documentation link.
10+
- [#516](https://github.com/mobilityhouse/ocpp/issues/516) OCPP 2.0.1 add additional security events from v1.3.
11+
- [#537](https://github.com/mobilityhouse/ocpp/pull/537) Fix DataTransfer data types. Thanks [@mdwcrft](https://github.com/mdwcrft)
412

513
## 0.23.0 (2023-11-30)
614

@@ -9,7 +17,6 @@
917
- [#510](https://github.com/mobilityhouse/ocpp/issues/510) v2.0.1 UnitOfMeasureType - Enums missing and update docstring to allow use for variableCharacteristics.
1018
- [#508](https://github.com/mobilityhouse/ocpp/issues/508) Exception - OccurrenceConstraintViolationError doc string correction.
1119

12-
1320
## 0.22.0 (2023-11-03)
1421

1522
- [#493](https://github.com/mobilityhouse/ocpp/issues/493) Reduce use of NotSupportedError in favor of NotImplementedError. Thanks [drc38](@https://github.com/drc38).

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Central system
5050

5151
The code snippet below creates a simple OCPP 2.0 central system which is able
5252
to handle BootNotification calls. You can find a detailed explanation of the
53-
code in the `Central System documentation_`.
53+
code in the `Central System documentation`_.
5454

5555

5656
.. code-block:: python

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "Auke Willem Oosterhoff"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "0.23.0"
26+
release = "0.24.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

ocpp/charge_point.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ async def _handle_call(self, msg):
267267
# '_on_after' hooks are not required. Therefore ignore exception
268268
# when no '_on_after' hook is installed.
269269
pass
270+
return response
270271

271272
async def call(self, payload, suppress=True, unique_id=None):
272273
"""

ocpp/v201/call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CustomerInformationPayload:
9090
class DataTransferPayload:
9191
vendor_id: str
9292
message_id: Optional[str] = None
93-
data: Optional[str] = None
93+
data: Optional[Any] = None
9494
custom_data: Optional[Dict[str, Any]] = None
9595

9696

ocpp/v201/call_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CustomerInformationPayload:
8787
class DataTransferPayload:
8888
status: str
8989
status_info: Optional[Dict] = None
90-
data: Optional[Dict] = None
90+
data: Optional[Any] = None
9191
custom_data: Optional[Dict[str, Any]] = None
9292

9393

ocpp/v201/enums.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,9 @@ class StatusInfoReasonType(str, Enum):
13341334

13351335

13361336
class SecurityEventType(str, Enum):
1337-
"""Security Events as listed in Appendices (Appendix 1. Security Events)"""
1337+
"""
1338+
Security Events as listed in Appendices (Appendix 1. Security Events) v1.3
1339+
"""
13381340

13391341
firmware_updated = "FirmwareUpdated"
13401342
failed_to_authenticate_at_csms = "FailedToAuthenticateAtCsms"
@@ -1354,3 +1356,5 @@ class SecurityEventType(str, Enum):
13541356
invalid_charging_station_certificate = "InvalidChargingStationCertificate"
13551357
invalid_tls_version = "InvalidTLSVersion"
13561358
invalid_tls_cipher_suite = "InvalidTLSCipherSuite"
1359+
maintenance_login_accepted = "MaintenanceLoginAccepted"
1360+
maintenance_login_failed = "MaintenanceLoginFailed"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ocpp"
3-
version = "0.23.0"
3+
version = "0.24.0"
44
description = "Python package implementing the JSON version of the Open Charge Point Protocol (OCPP)."
55
authors = [
66
"André Duarte <[email protected]>",

0 commit comments

Comments
 (0)