<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def googlecast(dev: Device, target, value):
 """Return Googlecast settings."""

    if target and value:
        click.echo("Setting %s = %s" % (target, value))
        await dev.set_googlecast_settings(target, value)
    print_settings(await dev.get_googlecast_settings())