summaryrefslogtreecommitdiffstats
path: root/aglbaseservice.py
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2020-05-14 15:40:10 +0300
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2020-06-09 09:30:02 +0300
commit6dccc504328e2de332bd8d86855bc8fda6da323d (patch)
treec35e859e8316645a7d081180809354085c6e071a /aglbaseservice.py
parentf3fb41b37cd34c961750aa25701fbb35941ff75f (diff)
working first test with asyncio for gps and weather.py imports cleanup
Diffstat (limited to 'aglbaseservice.py')
-rw-r--r--aglbaseservice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/aglbaseservice.py b/aglbaseservice.py
index 6d68095..e4fcfcd 100644
--- a/aglbaseservice.py
+++ b/aglbaseservice.py
@@ -88,7 +88,7 @@ class AGLBaseService:
exit(1)
URL = f'ws://{self.ip}:{self.port}/api?token={self.token}&uuid={self.uuid}'
- self._conn = connect(close_timeout=0, uri=URL, subprotocols=['x-afb-ws-json1'], ping_interval=None, timeout=2)
+ self._conn = connect(close_timeout=10000, uri=URL, subprotocols=['x-afb-ws-json1'], ping_interval=None)
self.websocket = await self._conn.__aenter__()
return self