updated websockets dependency
This commit is contained in:
16
test.py
Normal file
16
test.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import asyncio
|
||||
import json
|
||||
from streamdeckapi import SDWebsocketMessage, StreamDeckApi
|
||||
|
||||
async def __main__():
|
||||
deck = StreamDeckApi("localhost")
|
||||
info = await deck.get_info(False)
|
||||
|
||||
if info is None:
|
||||
print("Error getting info")
|
||||
return
|
||||
|
||||
print(json.dumps(info))
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(__main__())
|
||||
Reference in New Issue
Block a user