googledevices

Build Status PyPI version Get information from, and control various Google devices.


HOME PLATFORMS CLASSES METHODS FUNCTIONS CLI

Cast - Bluetooth - set_discovery_enabled

Sample usage:

from googledevices.api.connect import Cast
from googledevices.helpers import gdh_session, gdh_loop
from googledevices.utils.convert import format_json

CAST_HOST = '192.168.2.241'
LOOP = gdh_loop()

async def sample():
    """Sample usage."""
    async with gdh_session() as session:
        sample_class = await Cast(CAST_HOST, LOOP, session).bluetooth()
        test = await sample_class.set_discovery_enabled()
        print(format_json(test))
LOOP.run_until_complete(sample())