import asyncclick as click from . import xmo @xmo.cli.command() async def flush_log() -> None: try: async with xmo.flipflop('Device/DeviceInfo/FlushDeviceLog') as client: pass except Exception as e: ctx.fail(e)