File: test.py

package info (click to toggle)
pyyardian 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: python: 168; makefile: 6; sh: 2
file content (12 lines) | stat: -rw-r--r-- 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import aiohttp
import asyncio

from pyyardian.async_client import AsyncYardianClient

async def main():
    async with aiohttp.ClientSession() as session:
        cli = AsyncYardianClient(session, "host", "access_token")
        print(await cli.fetch_device_state())

if __name__ == "__main__":
    asyncio.run(main())