if period:
async def send_command_repeatedly():
while True:
- command_name = await charge_point.receive_command()
+ command_name = await cp.receive_command()
try:
match command_name:
case Action.ClearCache:
await charge_point.send_clear_cache()
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: