From ffcac699ed6af59a754f906fdfc4d45af89a79da Mon Sep 17 00:00:00 2001 From: Jared Newell Date: Thu, 19 Oct 2023 15:08:07 +0200 Subject: [PATCH 1/2] OCPP 1.6 Errata sheet v4.0 Release, 2019-10-23 --- 3.84. Page 106, section: 7.45: No UnitOfMeasure for Measurand Frequency. --- CHANGELOG.md | 2 ++ ocpp/v16/enums.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6519f06bd..a7a4fd44b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Change log +- [#207](https://github.com/mobilityhouse/ocpp/issues/207) v16/schemas/StopTransaction.json missing "Hertz" + ## 0.21.0 (2023-10-19) - [#492] Minor fixes _handle_call doc string - Thanks @drc38 diff --git a/ocpp/v16/enums.py b/ocpp/v16/enums.py index 8071fe17c..47770af6c 100644 --- a/ocpp/v16/enums.py +++ b/ocpp/v16/enums.py @@ -772,7 +772,6 @@ class UnitOfMeasure(str, Enum): fahrenheit = "Fahrenheit" k = "K" percent = "Percent" - hertz = "Hertz" class UnlockStatus(str, Enum): From c519d9b0dfea5fe04597e76fc03ccb95c25ab416 Mon Sep 17 00:00:00 2001 From: Jared Newell Date: Thu, 19 Oct 2023 15:13:29 +0200 Subject: [PATCH 2/2] updated tests --- tests/v16/test_v16_enums.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/v16/test_v16_enums.py b/tests/v16/test_v16_enums.py index 61fbee918..077d7992a 100644 --- a/tests/v16/test_v16_enums.py +++ b/tests/v16/test_v16_enums.py @@ -389,7 +389,6 @@ def test_unit_of_measure(): assert UnitOfMeasure.fahrenheit == "Fahrenheit" assert UnitOfMeasure.k == "K" assert UnitOfMeasure.percent == "Percent" - assert UnitOfMeasure.hertz == "Hertz" def test_unlock_status():