core: webostv not working on 0.104.0b4 - Error during setup of component webostv

Home Assistant release with the issue: 0.104.0b4

Last working Home Assistant release (if known): 0.103.6

Operating environment (Hass.io/Docker/Windows/etc.):

arch	x86_64
dev	false
docker	false
hassio	false
os_name	Ubuntu Linux 19.10
Kernel and CPU  Linux 5.3.0-26-generic on x86_64
python_version	3.7.5
timezone	Europe/Vaduz
version	0.104.0b4
virtualenv	true
Frontend-Version: 20200108.0 - latest

Description of problem: Error during setup of component webostv create_connection() got an unexpected keyword argument ‘ping_interval’

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

## #####################################
## LG TV
## #####################################
webostv:
  name: Wohnzimmer LG TV
  host: 10.1.1.92
  standby_connection: true
  turn_on_action:
    service: persistent_notification.create
    data:
      message: "Turn on action"
  customize:
    sources:
      - livetv
      - youtube
      - netflix	  

Additional information:

LG 55UC970V-ZA
Software 05.05.90
webOS TV Version 1.4.0-2357(afro-ashley)

Nmap scan report for 10.1.1.92
Host is up (0.0017s latency).
Not shown: 996 closed ports
PORT     STATE SERVICE
1900/tcp open  upnp
3000/tcp open  ppp
3001/tcp open  nessus
9998/tcp open  distinct32
MAC Address: **:**:**:**:**:** (LG Electronics)

ERROR Log

Jan 12 10:02:26 zeusus hass[23725]: 2020-01-12 10:02:26 ERROR (MainThread) [homeassistant.setup] Error during setup of component webostv
Jan 12 10:02:26 zeusus hass[23725]: Traceback (most recent call last):
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 170, in _async_setup_component
Jan 12 10:02:26 zeusus hass[23725]:     hass, processed_config
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webostv/__init__.py", line 93, in async_setup
Jan 12 10:02:26 zeusus hass[23725]:     await asyncio.gather(*tasks)
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webostv/__init__.py", line 109, in async_setup_tv
Jan 12 10:02:26 zeusus hass[23725]:     await async_setup_tv_finalize(hass, config, conf, client)
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webostv/__init__.py", line 141, in async_setup_tv_finalize
Jan 12 10:02:26 zeusus hass[23725]:     await async_connect(client)
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webostv/__init__.py", line 118, in async_connect
Jan 12 10:02:26 zeusus hass[23725]:     await client.connect()
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/aiopylgtv/webos_client.py", line 118, in connect
Jan 12 10:02:26 zeusus hass[23725]:     return await self.connect_result
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/aiopylgtv/webos_client.py", line 148, in connect_handler
Jan 12 10:02:26 zeusus hass[23725]:     close_timeout=self.timeout_connect),
Jan 12 10:02:26 zeusus hass[23725]:   File "/srv/homeassistant/lib/python3.7/site-packages/websockets/client.py", line 385, in __init__
Jan 12 10:02:26 zeusus hass[23725]:     factory, host, port, **kwds)
Jan 12 10:02:26 zeusus hass[23725]: TypeError: create_connection() got an unexpected keyword argument 'ping_interval'

Is there a possible solution to fix this error?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 41 (17 by maintainers)

Most upvoted comments

I also have a problem with the integration at 0.104.0b3.

Error during setup of component webostv
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 170, in _async_setup_component hass, processed_config File "/usr/src/homeassistant/homeassistant/components/webostv/__init__.py", line 91, in async_setup tasks = [async_setup_tv(hass, config, conf) for conf in config[DOMAIN]] KeyError: 'webostv'

Edit: this is a different problem and it’s because webostv now has its own platform. So do not set it up under media_player: but webostv: