Update tests/ocpp-server/server.py
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 25 Jun 2024 19:42:07 +0000 (21:42 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Jun 2024 19:42:07 +0000 (21:42 +0200)
tests/ocpp-server/server.py

index eec9471e554ed138033cbd99dd47aa81a977435a..aa424b7f90c6d89b30a25fb66e1b32be5a5d7671 100644 (file)
@@ -149,7 +149,7 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
     if period:
         async def send_command_repeatedly():
             while True:
-                command_name = await charge_point.receive_command()
+                command_name = await cp.receive_command()
                 try:
                     match command_name:
                         case Action.ClearCache: