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

index f48adb21762c179e983564518dd879e453100932..a753f261598a9cba79de73832a0d6f062da5cc4e 100644 (file)
@@ -152,7 +152,7 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
                 command_name = await charge_point.receive_command()
                 try:
                     match command_name:
-                        case 'ClearCache':
+                        case Action.ClearCache:
                             logging.info("ClearCache parser working")
                             await charge_point.send_clear_cache()
                         case 'GetBaseReport':