From 5816be16920d4faace158c99ee6fa1ba6181c0cd Mon Sep 17 00:00:00 2001 From: Chad Date: Thu, 30 Nov 2023 17:26:13 +0000 Subject: [PATCH 1/2] fix: DataTransfer data types --- ocpp/v201/call.py | 2 +- ocpp/v201/call_result.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocpp/v201/call.py b/ocpp/v201/call.py index f97f9a1e1..bff98238b 100644 --- a/ocpp/v201/call.py +++ b/ocpp/v201/call.py @@ -90,7 +90,7 @@ class CustomerInformationPayload: class DataTransferPayload: vendor_id: str message_id: Optional[str] = None - data: Optional[str] = None + data: Optional[Any] = None custom_data: Optional[Dict[str, Any]] = None diff --git a/ocpp/v201/call_result.py b/ocpp/v201/call_result.py index 6f3b25f0b..3a59b07a2 100644 --- a/ocpp/v201/call_result.py +++ b/ocpp/v201/call_result.py @@ -87,7 +87,7 @@ class CustomerInformationPayload: class DataTransferPayload: status: str status_info: Optional[Dict] = None - data: Optional[Dict] = None + data: Optional[Any] = None custom_data: Optional[Dict[str, Any]] = None From ca133002f3a77f668496fdbdedd093fe31f7e79c Mon Sep 17 00:00:00 2001 From: Chad Date: Sat, 2 Dec 2023 00:02:56 +0000 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f811b9b31..791b212da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change log +- [#537] (https://github.com/mobilityhouse/ocpp/pull/537) Fix DataTransfer data types - [#531] (https://github.com/mobilityhouse/ocpp/pull/531) Add 1.6 security extension datatypes ======= - [#528](https://github.com/mobilityhouse/ocpp/issues/528) v2.0.1 CertificateHashDataChainType childCertificateHashData requires the default of None