()
Discovers local Chromecasts and returns first one found.
    Raises exception if none can be found.
Discovers local Chromecasts and returns first one found.
    Raises exception if none can be found.
Discovers local Chromecasts and returns first one found . Raises exception if none can be found .
def _auto_select_chromecast():
    """
    Discovers local Chromecasts and returns first one found.
    Raises exception if none can be found.
    """
    ips = discover_chromecasts(1)

    if ips:
        return ips[0]
    else:
        raise NoChromecastFoundError("Unable to detect Chromecast")
def _auto_select_chromecast ( ) : ips = discover_chromecasts ( 1 ) if ips : return ips [ 0 ] else : raise NoChromecastFoundError ( "Unable to detect Chromecast" )