Skip to content

Commit

Permalink
remove deprecated Action items
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Dec 9, 2024
1 parent cf21e48 commit 314fb3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 124 deletions.
50 changes: 0 additions & 50 deletions ocpp/v16/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,56 +13,6 @@ class StrEnum(str, Enum): # pragma: no cover
class Action(StrEnum):
"""An Action is a required part of a Call message."""

def __init__(self, *args, **kwargs):
warn(
message="Action enum contains deprecated members and will be removed in "
"the next major release, please use snake case members.",
category=DeprecationWarning,
)

# --------- Soon to be deprecated ---------------------
Authorize = "Authorize"
BootNotification = "BootNotification"
CancelReservation = "CancelReservation"
CertificateSigned = "CertificateSigned"
ChangeAvailability = "ChangeAvailability"
ChangeConfiguration = "ChangeConfiguration"
ClearCache = "ClearCache"
ClearChargingProfile = "ClearChargingProfile"
DataTransfer = "DataTransfer"
DeleteCertificate = "DeleteCertificate"
DiagnosticsStatusNotification = "DiagnosticsStatusNotification"
ExtendedTriggerMessage = "ExtendedTriggerMessage"
FirmwareStatusNotification = "FirmwareStatusNotification"
GetCompositeSchedule = "GetCompositeSchedule"
GetConfiguration = "GetConfiguration"
GetDiagnostics = "GetDiagnostics"
GetInstalledCertificateIds = "GetInstalledCertificateIds"
GetLocalListVersion = "GetLocalListVersion"
GetLog = "GetLog"
Heartbeat = "Heartbeat"
InstallCertificate = "InstallCertificate"
LogStatusNotification = "LogStatusNotification"
MeterValues = "MeterValues"
RemoteStartTransaction = "RemoteStartTransaction"
RemoteStopTransaction = "RemoteStopTransaction"
ReserveNow = "ReserveNow"
Reset = "Reset"
SecurityEventNotification = "SecurityEventNotification"
SendLocalList = "SendLocalList"
SetChargingProfile = "SetChargingProfile"
SignCertificate = "SignCertificate"
SignedFirmwareStatusNotification = "SignedFirmwareStatusNotification"
SignedUpdateFirmware = "SignedUpdateFirmware"
StartTransaction = "StartTransaction"
StatusNotification = "StatusNotification"
StopTransaction = "StopTransaction"
TriggerMessage = "TriggerMessage"
UnlockConnector = "UnlockConnector"
UpdateFirmware = "UpdateFirmware"

# --------------------------------------------------------

authorize = "Authorize"
boot_notification = "BootNotification"
cancel_reservation = "CancelReservation"
Expand Down
74 changes: 0 additions & 74 deletions ocpp/v201/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,80 +13,6 @@ class StrEnum(str, Enum): # pragma: no cover
class Action(StrEnum):
"""An Action is a required part of a Call message."""

def __init__(self, *args, **kwargs):
warn(
message="Action enum contains deprecated members and will be removed in "
"the next major release, please use snake case members.",
category=DeprecationWarning,
)

# --------- Soon to be deprecated ---------------------
Authorize = "Authorize"
BootNotification = "BootNotification"
CancelReservation = "CancelReservation"
CertificateSigned = "CertificateSigned"
ChangeAvailability = "ChangeAvailability"
ClearCache = "ClearCache"
ClearChargingProfile = "ClearChargingProfile"
ClearDisplayMessage = "ClearDisplayMessage"
ClearedChargingLimit = "ClearedChargingLimit"
ClearVariableMonitoring = "ClearVariableMonitoring"
CostUpdated = "CostUpdated"
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

0 comments on commit 314fb3f

Please sign in to comment.