Exception when TV is switched into standby mode
thecode opened this issue · 1 comments
thecode commented
This exception happens when the TV is turned off, might be related that I have disabled the Quick Start+
feature,
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiopylgtv/webos_client.py", line 340, in ping_handler
ping_waiter = await ws.ping()
File "/usr/local/lib/python3.9/site-packages/websockets/legacy/protocol.py", line 657, in ping
await self.ensure_open()
File "/usr/local/lib/python3.9/site-packages/websockets/legacy/protocol.py", line 735, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), reason = server shutting down
The exception needs to be caught here:
aiopylgtv/aiopylgtv/webos_client.py
Lines 356 to 359 in 6b676ea
I can make a PR to fix it if there is a plan to make a new release.