Skip to content

Commit

Permalink
modified members
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared-Newell-Mobility committed Jan 26, 2024
1 parent 7002804 commit d0957c4
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 4 deletions.
72 changes: 69 additions & 3 deletions ocpp/v201/enums.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

try:
# breaking change introduced in python 3.11
from enum import StrEnum
Expand All @@ -11,6 +13,73 @@ class StrEnum(str, Enum): # pragma: no cover
class Action(StrEnum):
"""An Action is a required part of a Call message."""

########## Soon to be deprecated ######################
Authorize = "Authorize"
BootNotification = "BootNotification"
CancelReservation = "CancelReservation"
CertificateSigned = "CertificateSigned"
ChangeAvailability = "ChangeAvailability"
ClearCache = "ClearCache"
ClearChargingProfile = "ClearChargingProfile"
ClearDisplayMessage = "ClearDisplayMessage"
ClearedChargingLimit = "ClearedChargingLimit"
ClearVariableMonitoring = "ClearVariableMonitoring"
CostUpdate = "CostUpdate"
CustomerInformation = "CustomerInformation"
DataTransfer = "DataTransfer"
DeleteCertificate = "DeleteCertificate"
FirmwareStatusNotification = "FirmwareStatusNotification"
Get15118EVCertificate = "Get15118EVCertificate"
GetBaseReport = "GetBaseReport"
GetCertificateStatus = "GetCertificateStatus"
GetChargingProfiles = "GetChargingProfiles"
GetCompositeSchedule = "GetCompositeSchedule"
GetDisplayMessages = "GetDisplayMessages"
GetInstalledCertificateIds = "GetInstalledCertificateIds"
GetLocalListVersion = "GetLocalListVersion"
GetLog = "GetLog"
GetMonitoringReport = "GetMonitoringReport"
GetReport = "GetReport"
GetTransactionStatus = "GetTransactionStatus"
GetVariables = "GetVariables"
Heartbeat = "Heartbeat"
InstallCertificate = "InstallCertificate"
LogStatusNotification = "LogStatusNotification"
MeterValues = "MeterValues"
NotifyChargingLimit = "NotifyChargingLimit"
NotifyCustomerInformation = "NotifyCustomerInformation"
NotifyDisplayMessages = "NotifyDisplayMessages"
NotifyEVChargingNeeds = "NotifyEVChargingNeeds"
NotifyEVChargingSchedule = "NotifyEVChargingSchedule"
NotifyEvent = "NotifyEvent"
NotifyMonitoringReport = "NotifyMonitoringReport"
NotifyReport = "NotifyReport"
PublishFirmware = "PublishFirmware"
PublishFirmwareStatusNotification = "PublishFirmwareStatusNotification"
ReportChargingProfiles = "ReportChargingProfiles"
RequestStartTransaction = "RequestStartTransaction"
RequestStopTransaction = "RequestStopTransaction"
ReservationStatusUpdate = "ReservationStatusUpdate"
ReserveNow = "ReserveNow"
Reset = "Reset"
SecurityEventNotification = "SecurityEventNotification"
SendLocalList = "SendLocalList"
SetChargingProfile = "SetChargingProfile"
SetDisplayMessage = "SetDisplayMessage"
SetMonitoringBase = "SetMonitoringBase"
SetMonitoringLevel = "SetMonitoringLevel"
SetNetworkProfile = "SetNetworkProfile"
SetVariableMonitoring = "SetVariableMonitoring"
SetVariables = "SetVariables"
SignCertificate = "SignCertificate"
StatusNotification = "StatusNotification"
TransactionEvent = "TransactionEvent"
TriggerMessage = "TriggerMessage"
UnlockConnector = "UnlockConnector"
UnpublishFirmware = "UnpublishFirmware"
UpdateFirmware = "UpdateFirmware"
#############################################################

authorize = "Authorize"
boot_notification = "BootNotification"
cancel_reservation = "CancelReservation"
Expand Down Expand Up @@ -77,9 +146,6 @@ class Action(StrEnum):
update_firmware = "UpdateFirmware"


# Enums


class APNAuthenticationType(StrEnum):
"""
APNAuthenticationEnumType is used by
Expand Down
1 change: 0 additions & 1 deletion tests/v20/test_v20_charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def after_boot_notification(reason, charging_station, **kwargs):


@pytest.mark.asyncio
@pytest.mark.xfail
async def test_route_message_with_no_route(base_central_system, heartbeat_call):
"""
Test that a CALLERROR is sent back, reporting that no handler is
Expand Down

0 comments on commit d0957c4

Please sign in to comment.