) # Use correct ReportBaseType
try:
response = await self.call(request)
- logging.info("Send GetBaseReport")
+ logging.info("Send %s", Action.GetBaseReport)
if (
response.status == "Accepted"
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':
+ 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: