core: Component LG WebOSTV crashed in core-2021.4.1

The problem

Component LG WebOSTV crashed in core-2021.4.1 after the upgrade from core-2021.3.4, generating this message on notifications :

The following integrations and platforms could not be set up:

webostv webostv.media_player webostv.notify

Please check your config and logs.

The media_player entities are not recognized anymore.

Captura de tela 2021-04-09 082036

What is version of Home Assistant Core has the issue?

core-2021.4.1

What was the last working version of Home Assistant Core?

core-2021.3.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

LG WebOSTV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/webostv

Example YAML snippet

Part of the configuration.yaml for this component:

# LG TV
wake_on_lan:

webostv:
  - name: TV SALA
    host: !secret TV_SALA_IP
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: !secret TV_SALA_MAC
        broadcast_address: !secret BROADCAST_IP
  - name: TV SACADA
    host: !secret TV_SACADA_IP
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: !secret TV_SACADA_MAC
        broadcast_address: !secret BROADCAST_IP

Anything in the logs that might be useful for us?

2021-04-09 08:06:07 WARNING (SyncWorker_0) [homeassistant.components.webostv] LG webOS TV client-key file is being migrated to Sqlite!
2021-04-09 08:06:07 WARNING (SyncWorker_2) [homeassistant.components.webostv] LG webOS TV client-key file is being migrated to Sqlite!
2021-04-09 08:06:07 ERROR (MainThread) [homeassistant.setup] Error during setup of component webostv
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 240, in _async_setup_component
result = await task
File "/usr/src/homeassistant/homeassistant/components/webostv/__init__.py", line 103, in async_setup
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/components/webostv/__init__.py", line 140, in async_setup_tv
await hass.async_add_executor_job(convert_client_keys, config_file)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/webostv/__init__.py", line 126, in convert_client_keys
os.remove(config_file)
FileNotFoundError: [Errno 2] No such file or directory: '/config/webostv.conf'
2021-04-09 08:06:09 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform webostv.media_player: Unable to set up component.
2021-04-09 08:06:36 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform webostv.notify: Unable to set up component.
2021-04-09 08:06:36 ERROR (MainThread) [homeassistant.components.notify] Unknown notification service specified

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Now working again on core-2021.4.3 !!

I upgraded to 2014.4.2 last night and that seems to have fixed the problem for me.

@corneyl this looks like an issue with the config migration code added in https://github.com/home-assistant/core/pull/47014 can you take a look?

Maybe unrelated, but I get the same errors as @rodrigogbs since upgrading to 2021.4(.1) but am not using the default SQLite database; I’m running on the MariaDB so the first warnings in our log files (“WARNING (SyncWorker_0) [homeassistant.components.webostv] LG webOS TV client-key file is being migrated to Sqlite!”) struck me as odd.

Hey there @bendavid, mind taking a look at this issue as its been labeled with an integration (webostv) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)