From d4eddfaee92738e8d33f7cca0acc724b152501d4 Mon Sep 17 00:00:00 2001 From: Sekiya Date: Wed, 26 Jun 2024 16:47:53 +0900 Subject: [PATCH] fix: corrected a error --- tests/ocpp-server/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ocpp-server/server.py b/tests/ocpp-server/server.py index b43f5f36..45a7668f 100644 --- a/tests/ocpp-server/server.py +++ b/tests/ocpp-server/server.py @@ -218,11 +218,11 @@ async def main(): args = parser.parse_args() - on_connect = partial(on_connect, args=args) # Add args to on_connect + on_connect_bound = partial(on_connect, args=args) # Add args to on_connect # Create the WebSocket server and specify the handler for new connections. server = await websockets.serve( - on_connect, + on_connect_bound, "127.0.0.1", # Listen on loopback. 9000, # Port number. subprotocols=["ocpp2.0", "ocpp2.0.1"], # Specify OCPP 2.0.1 subprotocols. -- 2.34.1