Get information from, and control various Google devices.
HOME | PLATFORMS | CLASSES | METHODS | FUNCTIONS | CLI |
notifications_enabled
This takes one optional parameter.
param | type | default | description |
---|---|---|---|
start | bool | True | Enable notification |
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).assistant()
test = await sample_class.notifications_enabled()
print(format_json(test))
LOOP.run_until_complete(sample())