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

index f05e80f4d6be3758cda03ab640aca4e4d1cf3be4..eec9471e554ed138033cbd99dd47aa81a977435a 100644 (file)
@@ -157,7 +157,7 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
                             await charge_point.send_clear_cache()
                         case Action.GetBaseReport:
                             logging.info("GetBaseReport parser working")
-                            await charge_point.send_get_base_report()
+                            await cp.send_get_base_report()
                         case _:
                             logging.warning(f"Unsupported command {command_name}")
                 except Exception as e: