How to use the catt.controllers.get_chromecast function in catt

To help you get started, we’ve selected a few catt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skorokithakis / catt / catt / cli.py View on Github external
def write_config(settings):
    if settings.get("device"):
        if not get_chromecast(settings["device"]):
            raise CliError("Specified device not found")
        writeconfig(settings)
    else:
        raise CliError("No device specified")