From 52a0577171a2fba38a1860552f1a9fb0c871b2af Mon Sep 17 00:00:00 2001 From: Jared-Newell-Mobility <119603687+Jared-Newell-Mobility@users.noreply.github.com> Date: Tue, 7 Nov 2023 09:20:55 +0100 Subject: [PATCH] V2.0.1 unit of measure update docstring to allow use for variable characteristics (#514) Fixes #510 --- CHANGELOG.md | 3 +++ ocpp/v201/enums.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8dc26da5..a6cd7bf26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Change log + +- [#510](https://github.com/mobilityhouse/ocpp/issues/510) v2.0.1 UnitOfMeasureType - Enums missing and update docstring to allow use for variableCharacteristics - [#508](https://github.com/mobilityhouse/ocpp/issues/508) Exception - OccurrenceConstraintViolationError doc string correction + ## 0.22.0 (2023-11-03) - [#493](https://github.com/mobilityhouse/ocpp/issues/493) Reduce use of NotSupportedError in favor of NotImplementedError. Thanks [drc38](@https://github.com/drc38). diff --git a/ocpp/v201/enums.py b/ocpp/v201/enums.py index 30b12a756..50503d60f 100644 --- a/ocpp/v201/enums.py +++ b/ocpp/v201/enums.py @@ -1244,7 +1244,8 @@ class UnitOfMeasureType(str, Enum): """ Allowable values of the optional "unit" field of a Value element, as used in MeterValues.req and StopTransaction.req messages. Default value of - "unit" is always "Wh". + "unit" is always "Wh". Also used in component/variables - + specifically the unit in variableCharacteristics. """ asu = "ASU"