From 635b5e8240a488496307930413aebe4af335c739 Mon Sep 17 00:00:00 2001 From: Andrew Mirsky Date: Wed, 18 Dec 2024 09:45:37 -0500 Subject: [PATCH] removing spaces in ConnectedEVVariableName. and fixing types in SetMonitoringBase and PublishFirmwareResponse --- ocpp/v201/call_result.py | 4 ++-- ocpp/v201/enums.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ocpp/v201/call_result.py b/ocpp/v201/call_result.py index 0150f207f..c4e78326c 100644 --- a/ocpp/v201/call_result.py +++ b/ocpp/v201/call_result.py @@ -271,7 +271,7 @@ class NotifyReport: @dataclass class PublishFirmware: - status: enums.PublishFirmwareStatusEnumType + status: enums.GenericStatusEnumType status_info: Optional[datatypes.StatusInfoType] = None custom_data: Optional[Dict[str, Any]] = None @@ -348,7 +348,7 @@ class SetDisplayMessage: @dataclass class SetMonitoringBase: - status: enums.GenericStatusEnumType + status: enums.GenericDeviceModelStatusEnumType status_info: Optional[datatypes.StatusInfoType] = None custom_data: Optional[Dict[str, Any]] = None diff --git a/ocpp/v201/enums.py b/ocpp/v201/enums.py index 12e19d05f..44a634c2d 100644 --- a/ocpp/v201/enums.py +++ b/ocpp/v201/enums.py @@ -2184,9 +2184,9 @@ class ConnectedEVVariableName(StrEnum): charging_complete_full = "ChargingCompleteFull" # Status values - battery_overvoltage = " BatteryOvervoltage" - battery_undervoltage = " BatteryUndervoltage" - charging_current_deviation = " ChargingCurrentDeviation" + battery_overvoltage = "BatteryOvervoltage" + battery_undervoltage = "BatteryUndervoltage" + charging_current_deviation = "ChargingCurrentDeviation" battery_temperature = "BatteryTemperature" voltage_deviation = "VoltageDeviation" charging_system_error = "ChargingSystemError"