fix(ocpp-server): silence linter
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 27 Jun 2024 20:36:42 +0000 (22:36 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 27 Jun 2024 20:36:42 +0000 (22:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/ocpp-server/server.py

index 3001ebd843cb7b787bef94b34da24752f0c28ff4..034218d2503738fa3d56713923cd340393fc1d6e 100644 (file)
@@ -202,14 +202,6 @@ async def main():
     )
     logging.info("WebSocket Server Started")
 
-    args = parser.parse_args()
-
-    if args.command:
-        for cp in ChargePoints:
-            asyncio.create_task(
-                send_ocpp_command(cp, args.command, args.delay, args.period)
-            )
-
     # Wait for the server to close (runs indefinitely).
     await server.wait_closed()