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

index aa424b7f90c6d89b30a25fb66e1b32be5a5d7671..98a9d8530790ccccc7bf333ef7e1445bff9952e6 100644 (file)
@@ -154,7 +154,7 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
                     match command_name:
                         case Action.ClearCache:
                             logging.info("ClearCache parser working")
-                            await charge_point.send_clear_cache()
+                            await cp.send_clear_cache()
                         case Action.GetBaseReport:
                             logging.info("GetBaseReport parser working")
                             await cp.send_get_base_report()