You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a quick look at fixing the websockets (streaming) connection to add keepalives etc.
But now I actually don't think it has worked at all since switching to httpx, as httpx does not have WS support...
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/connection.py", line 288, in websocket_connect
self.websocket = await self.websession.ws_connect(self.websocket_url)
AttributeError: 'AsyncClient' object has no attribute 'ws_connect'
From this line:
I tried to just replace it with webockets.connect. but that seems to not be a drop in replacement, so it needs a bit more massage before it is usable...
Just throwing this out here as a start.
I had a quick look at fixing the websockets (streaming) connection to add keepalives etc.
But now I actually don't think it has worked at all since switching to httpx, as httpx does not have WS support...
From this line:
I tried to just replace it with
webockets.connect
. but that seems to not be a drop in replacement, so it needs a bit more massage before it is usable...There is a potential problem, that the streaming API seems to only support one client at a time:
teslamate-org/teslamate#753 (comment)
So enabling the streaming API here might interfere with the app. Need to think a bit how to handle that...
The text was updated successfully, but these errors were encountered: