configuration.yaml
# LG TV
webostv:
host: !secret weboslgtv
name: LG-TV Lounge Room
Log Details (ERROR)
Logger: homeassistant.components.media_player
Source: components/webostv/media_player.py:119
Integration: Media player (documentation, issues)
First occurred: 8:24:50 AM (1 occurrences)
Last logged: 8:24:50 AM
Error while setting up webostv platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 78, in async_setup_platform
entity = LgWebOSMediaPlayerEntity(client, name, customize, on_script)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 119, in __init__
self._unique_id = client.software_info["device_id"]
TypeError: 'NoneType' object is not subscriptable
Hey there @bendavid, mind taking a look at this issue as its been labeled with a integration (webostv
) you are listed as a codeowner for? Thanks!
@DavidFW1960 I saw this same issue last night when I first loaded the the beta. This morning I restated and had the TV on, and the error is gone. Not sure which cleared it up.
I'm still seeing this with b1. My TV is Off but that never caused this error prior to 0.109.0b0
Updated to .109.0b1 with the same error occuring. Turned my TV on and restarted HA and the error goes away.
This issue is introduced by https://github.com/home-assistant/core/pull/34147 and indeed there is a problem if home assistant is started while the TV is off.
Same problem here. Three TVs in my home automation system. Two disappeared from home assistant (and there is no way to make them "reappear") and one is still visible but not available. I wonder: Is it ever possible that almost every update the LG Webos plugin will break? It is quite boring and frustrating.
@giustanca you're running a beta of software that is free to use…
@timmo001 looks like your PR introduced a bug. Could you take a look?
Yeah sure, will do :+1:
Same here:
Logger: homeassistant.components.media_player
Source: components/webostv/media_player.py:119
Integration: Media player (documentation, issues)
First occurred: 12:40:10 PM (1 occurrences)
Last logged: 12:40:10 PM
Error while setting up webostv platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 78, in async_setup_platform
entity = LgWebOSMediaPlayerEntity(client, name, customize, on_script)
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 119, in __init__
self._unique_id = client.software_info["device_id"]
TypeError: 'NoneType' object is not subscriptable
@timmo001 the issue is that client.software_info is None when the client is not connected to the TV
Yep found it. I'll create a PR :smiley:
Looks like @ludeeus beat me to it. Cheers :beers:
b4 now and still I see an error..
2020-04-28 08:22:33 WARNING (MainThread) [homeassistant.components.webostv] No connection could be made with host 10.90.11.44, retrying in 60 seconds
2020-04-28 08:23:35 WARNING (MainThread) [homeassistant.components.webostv] No connection could be made with host 10.90.11.44, retrying in 60 seconds
2020-04-28 08:24:38 WARNING (MainThread) [homeassistant.components.webostv] No connection could be made with host 10.90.11.44, retrying in 60 seconds
2020-04-28 08:25:40 WARNING (MainThread) [homeassistant.components.webostv] No connection could be made with host 10.90.11.44, retrying in 60 seconds
Looks like it's going to repeat.....
Who and why did you censor my comment? It is absolutely true that almost every update the webos component is broken or not working. What does the fact that the software is free have to do with it? Nice thing about censorship! Compliments.
Same problem with 0.109 and webos
2020-04-29 18:29:37 WARNING (MainThread) [homeassistant.components.webostv] No connection could be made with host 192.168.1.120, retrying in 60 seconds
The warning log message is expected but a bit noisy. Should probably be moved to debug level.
it shouldn't repeat every minute either
Submitted a PR to make it less annoying.
Most helpful comment
Yeah sure, will do :+1: