Skip to content

Commit

Permalink
Move circ import to func
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Oct 19, 2023
1 parent d6b745e commit 364b5ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from ocpp.exceptions import NotImplementedError, NotSupportedError, OCPPError
from ocpp.messages import Call, MessageType, unpack, validate_payload
from ocpp.routing import create_route_map
from ocpp.v16.enums import Action as v16_Action
from ocpp.v201.enums import Action as v201_Action

LOGGER = logging.getLogger("ocpp")

Expand Down Expand Up @@ -89,6 +87,9 @@ def _raise_keyerror(action, version):
the appropriate error.
"""

from ocpp.v16.enums import Action as v16_Action
from ocpp.v201.enums import Action as v201_Action

if version == "1.6":
if hasattr(v16_Action, action):
raise NotImplementedError(
Expand Down

0 comments on commit 364b5ab

Please sign in to comment.