fix(ocpp-server): silence linter
[e-mobility-charging-stations-simulator.git] / tests / ocpp-server / server.py
index 6b497a4b73c5ff42864407317d0a476ae39a9466..034218d2503738fa3d56713923cd340393fc1d6e 100644 (file)
@@ -123,7 +123,7 @@ class ChargePoint(ocpp.v201.ChargePoint):
         if response.status == ReportBaseType.accepted:
             logging.info("%s successful", Action.GetBaseReport)
         else:
-            logging.info("%s filed", Action.GetBaseReport)
+            logging.info("%s failed", Action.GetBaseReport)
 
 
 # Function to send OCPP command
@@ -137,7 +137,9 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
                 logging.info("%s Send:", Action.GetBaseReport)
                 await cp.send_get_base_report()
     except Exception:
-        logging.exception(f"Not supported or Failure while processing command {command_name}")
+        logging.exception(
+            f"Not supported or Failure while processing command {command_name}"
+        )
 
     if delay:
         await asyncio.sleep(delay)
@@ -200,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()