Hi, suddenly I start having this error on the LG webOS and I cant control de TV.
Failed to call service media_player/toggle. code = 1006 (connection closed abnormally [internal]), no reason
This is the log
Logger: homeassistant.components.websocket_api.http.connection
Source: components/webostv/media_player.py:422
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:00:20 AM (1 occurrences)
Last logged: 10:00:20 AM
[1585503512] code = 1006 (connection closed abnormally [internal]), no reason
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 827, in transfer_data
message = await self.read_message()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.8/site-packages/websockets/framing.py", line 133, in read
data = await reader(length)
File "/usr/local/lib/python3.8/asyncio/streams.py", line 723, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 848, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 367, in async_media_play_pause
await self.async_media_play()
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 92, in wrapper
await func(obj, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 422, in async_media_play
await self._client.play()
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 936, in play
return await self.request(ep.MEDIA_PLAY)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 626, in request
await self.command(cmd_type, uri, payload, uid)
File "/usr/local/lib/python3.8/site-packages/aiopylgtv/webos_client.py", line 616, in command
await self.connection.send(json.dumps(message))
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/usr/local/lib/python3.8/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Anyone having this issue?