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:
logging.info("ClearCache parser working")
- await charge_point.send_clear_cache()
+ await cp.send_clear_cache()
case Action.GetBaseReport:
logging.info("GetBaseReport parser working")
await cp.send_get_base_report()