From c4d96d9e876d630fee80153a8ef3c3ddaed8d8dd Mon Sep 17 00:00:00 2001 From: Jared-Newell-Mobility <119603687+Jared-Newell-Mobility@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:51:26 +0100 Subject: [PATCH] OCPP 2.0.1 Wrong data type in CostUpdated total_cost (#596) see issue https://github.com/mobilityhouse/ocpp/issues/557 --- CHANGELOG.md | 1 + ocpp/v201/call.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 149f2876b..4a476590a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Change log +- [#557](https://github.com/mobilityhouse/ocpp/issues/557) OCPP 2.0.1 Wrong data type in CostUpdated total_cost - [#564](https://github.com/mobilityhouse/ocpp/issues/564) Add support For Python 3.11 and 3.12 - [#583](https://github.com/mobilityhouse/ocpp/issues/583) OCPP v1.6/v2.0.1 deprecate dataclasses from calls and call results with the suffix 'Payload' diff --git a/ocpp/v201/call.py b/ocpp/v201/call.py index 461f37365..ddc681606 100644 --- a/ocpp/v201/call.py +++ b/ocpp/v201/call.py @@ -71,7 +71,7 @@ class ClearedChargingLimit: @dataclass class CostUpdated: - total_cost: int + total_cost: float transaction_id: str custom_data: Optional[Dict[str, Any]] = None