From 0a0eea590c075d90ddaff8340541305cd80b58c3 Mon Sep 17 00:00:00 2001 From: RoaringDev1203 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 149f287..4a47659 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 461f373..ddc6816 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