From 4f3192d88f9457ebe089c793adc7ff663cd595d5 Mon Sep 17 00:00:00 2001 From: David Saidov <122940814+d2avids@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:44:42 +0300 Subject: [PATCH 1/2] fix typo in DataTypeEnum -> value_too_high (#612) see issue https://github.com/mobilityhouse/ocpp/issues/613 --- CHANGELOG.md | 1 + ocpp/v201/enums.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 602d12d0c..c5770e45b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - [#519](https://github.com/mobilityhouse/ocpp/issues/519) Typo in v201.enums.StatusInfoReasonType.invaild_schedule - [#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 +- [#613](https://github.com/mobilityhouse/ocpp/issues/613) Typo correction in v201.enums.StatusInfoReasonType.value_too_hight -> value_too_high ## DEPRECATED ## - [#599](https://github.com/mobilityhouse/ocpp/issues/599) v1.6 Action Enum members corrected IMPORTANT SEE UPGRADE PATH [#599](https://github.com/mobilityhouse/ocpp/issues/599) diff --git a/ocpp/v201/enums.py b/ocpp/v201/enums.py index 07ad9247d..1e0410143 100644 --- a/ocpp/v201/enums.py +++ b/ocpp/v201/enums.py @@ -1408,7 +1408,7 @@ class StatusInfoReasonType(StrEnum): unsupported_request = "UnsupportedRequest" value_out_of_range = "ValueOutOfRange" value_positive_only = "ValuePositiveOnly" - value_too_hight = "ValueTooHigh" + value_too_high = "ValueTooHigh" value_too_low = "ValueTooLow" value_zero_not_allowed = "ValueZeroNotAllowed" write_only = "WriteOnly" From d96d243c8fb3e042f6837aa4ccecda5356598064 Mon Sep 17 00:00:00 2001 From: OSkrk <63248433+OSkrk@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:24:59 +0100 Subject: [PATCH 2/2] Fix typo in OCPP 2.0.1 enum Action.cost_updated This PR intends to fix a typo in the enum for v201 --- ocpp/v201/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocpp/v201/enums.py b/ocpp/v201/enums.py index 1e0410143..2f903ca75 100644 --- a/ocpp/v201/enums.py +++ b/ocpp/v201/enums.py @@ -97,7 +97,7 @@ def __init__(self, *args, **kwargs): clear_display_message = "ClearDisplayMessage" cleared_charging_limit = "ClearedChargingLimit" clear_variable_monitoring = "ClearVariableMonitoring" - cost_update = "CostUpdate" + cost_updated = "CostUpdated" customer_information = "CustomerInformation" data_transfer = "DataTransfer" delete_certificate = "DeleteCertificate"