We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b632423 commit 835e6bbCopy full SHA for 835e6bb
README.md
@@ -39,12 +39,17 @@ import time
39
40
from pyoverkiz.const import SUPPORTED_SERVERS
41
from pyoverkiz.client import OverkizClient
42
+from aiohttp import ClientSession
43
44
USERNAME = ""
45
PASSWORD = ""
46
47
+
48
async def main() -> None:
- async with OverkizClient(USERNAME, PASSWORD, server=SUPPORTED_SERVERS["somfy_europe"]) as client:
49
50
+ session = ClientSession()
51
+ server = SUPPORTED_SERVERS["somfy_europe"](session)
52
+ async with OverkizClient(USERNAME, PASSWORD, server=server) as client:
53
try:
54
await client.login()
55
except Exception as exception: # pylint: disable=broad-except
@@ -63,6 +68,8 @@ async def main() -> None:
63
68
64
69
time.sleep(2)
65
70
71
72
+asyncio.run(main())
66
73
asyncio.run(main())
67
74
```
75
0 commit comments