aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/neohub.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/neohub.py')
-rw-r--r--scripts/neohub.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/neohub.py b/scripts/neohub.py
index f2c0ed8..e15a00e 100644
--- a/scripts/neohub.py
+++ b/scripts/neohub.py
@@ -1,13 +1,13 @@
#!/usr/bin/python3
''' Get stuff from neohub! This is mostly the usage-example from https://gitlab.com/neohubapi/neohubapi/ '''
+import asyncio
import os
import time
-import asyncio
from datetime import datetime
-import neohubapi.neohub as neohub
import common
+import neohubapi.neohub as neohub
neohub_ip = os.environ['el_neohub_ip']
neohub_port = os.environ['el_neohub_port']
@@ -19,7 +19,7 @@ async def call_neohub():
hub = neohub.NeoHub(neohub_ip, int(neohub_port))
# Or, for a websocket connection:
# hub = neohub.Neohub(port=4243, token='xxx-xxxxxxx')
- system = await hub.get_system()
+ # system = await hub.get_system()
hub_data, devices = await hub.get_live_data()
for device in devices['thermostats']:
#print(f"Temperature in zone {device.name}: {device}")