Skip to content

Commit 364b5ab

Browse files
authored
Move circ import to func
1 parent d6b745e commit 364b5ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ocpp/charge_point.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
from ocpp.exceptions import NotImplementedError, NotSupportedError, OCPPError
1111
from ocpp.messages import Call, MessageType, unpack, validate_payload
1212
from ocpp.routing import create_route_map
13-
from ocpp.v16.enums import Action as v16_Action
14-
from ocpp.v201.enums import Action as v201_Action
1513

1614
LOGGER = logging.getLogger("ocpp")
1715

@@ -89,6 +87,9 @@ def _raise_keyerror(action, version):
8987
the appropriate error.
9088
"""
9189

90+
from ocpp.v16.enums import Action as v16_Action
91+
from ocpp.v201.enums import Action as v201_Action
92+
9293
if version == "1.6":
9394
if hasattr(v16_Action, action):
9495
raise NotImplementedError(

0 commit comments

Comments
 (0)