Hello guys,
I’ve ran into problems in setting up LGwebostv with these errors in it . I couldnt find anywhere addressing this.
Error while setting up platform webostv
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py”, line 412, in wait_for
return fut.result()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/media_player/webostv.py”, line 87, in setup_platform
add_devices, turn_on_action)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/media_player/webostv.py”, line 93, in setup_tv
from pylgtv import WebOsClient
File “/Users/yitchuan/.homeassistant/deps/lib/python/site-packages/pylgtv/init.py”, line 1, in
from .webos_client import WebOsClient
File “/Users/yitchuan/.homeassistant/deps/lib/python/site-packages/pylgtv/webos_client.py”, line 6, in
import websockets
File “/Users/yitchuan/.homeassistant/deps/lib/python/site-packages/websockets/init.py”, line 3, in
from .client import *
File “/Users/yitchuan/.homeassistant/deps/lib/python/site-packages/websockets/client.py”, line 13, in
from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol
File “/Users/yitchuan/.homeassistant/deps/lib/python/site-packages/websockets/protocol.py”, line 17, in
from .compatibility import asyncio_ensure_future
File “/Users/yitchuan/.homeassistant/deps/lib/python/site-packages/websockets/compatibility.py”, line 8
asyncio_ensure_future = asyncio.async # Python < 3.5
^
SyntaxError: invalid syntax
Here is what is input to configuration.yaml
media_player:
- platform: webostv
host: 192.168.1.148
name: Living room TV
Any heads up?