File permissions are correct. Just to be sure I chmod 755 the file, but problem still remains.
As for the validation: Itās exactly the same code as found on github, with an extra if statement added.
also checked that one, did copy-paste on the file name just to be sure.
I think it has something to do how the component announces itselfā¦
All my components have the folder structure of service\componentname.py
The webostv component has it in reverse: componentname\service.py (like: webostv\media_player.py)
So it is a replacement for the builtin component right?
Name the file webostv2.py in the folder media_player. And in your config file use platform: webostv2. Can you try that?
Itās indeed a replacement for the builtin component.
What you describe is exactly what I did. I just named it webostv_ext in stead of webostv2.
Also tried it in reverse, create a folder named webostv_ext, and put media_player.py inside.
Always the same error, for that specific component.
Are you using the beta version of HA? Because this version will not work on the stable version. They changed a few things in the upcomming release (as far as I can see) in the way components are loaded.
Why are you trying to load this dev component? The only difference with the ānormalā webostv component is the way itās loaded. Nothing functionally is different.
Iām running the latest stable: 0.87.1
The reason Iām using a custom component is that the ānormalā webostv component is missing the open_url method, implemented in pylgtv.
So I added the following to play_media:
They haveā¦ Iām on 0.88.0b0 and custom components wonāt break but you will get a warning and instructions on how to fix in the logā¦ no big issue FWIW
Additionally, if you are running home assistant docker, restarting Home Assistant from the web gui is not enough, you have to restart the entire docker containerā¦ At least that is what worked for me, it may have been because that force restarts everything, ignoring the configuration checkā¦