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

index a753f261598a9cba79de73832a0d6f062da5cc4e..2905b09da68b24478bce8851bf5c5cd695d41ca6 100644 (file)
@@ -155,7 +155,7 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
                         case Action.ClearCache:
                             logging.info("ClearCache parser working")
                             await charge_point.send_clear_cache()
-                        case 'GetBaseReport':
+                        case Action.GetBaseReport:
                             logging.info("GetBaseReport parser working")
                             await charge_point.send_get_base_report()
                         case _: