repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update tests/ocpp-server/server.py
[e-mobility-charging-stations-simulator.git]
/
tests
/
ocpp-server
/
server.py
diff --git
a/tests/ocpp-server/server.py
b/tests/ocpp-server/server.py
index f48adb21762c179e983564518dd879e453100932..eec9471e554ed138033cbd99dd47aa81a977435a 100644
(file)
--- a/
tests/ocpp-server/server.py
+++ b/
tests/ocpp-server/server.py
@@
-117,7
+117,7
@@
class ChargePoint(ocpp.v201.ChargePoint):
) # Use correct ReportBaseType
try:
response = await self.call(request)
) # Use correct ReportBaseType
try:
response = await self.call(request)
- logging.info("Send
GetBaseReport"
)
+ logging.info("Send
%s", Action.GetBaseReport
)
if (
response.status == "Accepted"
if (
response.status == "Accepted"
@@
-152,12
+152,12
@@
async def send_ocpp_command(cp, command_name, delay=None, period=None):
command_name = await charge_point.receive_command()
try:
match command_name:
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()
logging.info("ClearCache parser working")
await charge_point.send_clear_cache()
- case
'GetBaseReport'
:
+ case
Action.GetBaseReport
:
logging.info("GetBaseReport parser working")
logging.info("GetBaseReport parser working")
- await c
harge_point
.send_get_base_report()
+ await c
p
.send_get_base_report()
case _:
logging.warning(f"Unsupported command {command_name}")
except Exception as e:
case _:
logging.warning(f"Unsupported command {command_name}")
except Exception as e: