aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/neohub.py
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-02-01 20:59:42 +0100
committerDennis Eriksen <d@ennis.no>2023-02-01 20:59:42 +0100
commit7c403ecc8b6bd31f447eb91d73d95055489fbac4 (patch)
treef70a96871178c0d78be505cc71f090e4e91857ea /scripts/neohub.py
parentmoving and renaming/breaking everything (diff)
downloadenergyscripts-7c403ecc8b6bd31f447eb91d73d95055489fbac4.tar.gz
fixing some lintingthings
Diffstat (limited to 'scripts/neohub.py')
-rw-r--r--scripts/neohub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/neohub.py b/scripts/neohub.py
index 5c62606..7cc1160 100644
--- a/scripts/neohub.py
+++ b/scripts/neohub.py
@@ -1,4 +1,5 @@
#!/usr/bin/python3
+''' Get stuff from neohub! This is mostly the usage-example from https://gitlab.com/neohubapi/neohubapi/ '''
import os
import asyncio
@@ -11,6 +12,7 @@ neohub_ip = os.environ['el_neohub_ip']
neohub_port = os.environ['el_neohub_port']
async def run():
+ ''' async runner! w00p '''
# Legacy connection
hub = neohub.NeoHub(neohub_ip, int(neohub_port))
# Or, for a websocket connection:
@@ -24,4 +26,3 @@ async def run():
dbi(sql, values)
asyncio.run(run())
-