madmicio / LG-WebOS-Remote-Control

Remote Control for LG TV WebOS
415 stars 76 forks source link

Issue loading from HACS #135

Closed briadelour closed 9 months ago

briadelour commented 9 months ago

First off this integration is great! The remote works great, but I have one issue I can't figure out.

When I initially load from HACS the card gives an error that states: "Custom element doesn't exist: lg-remote-control."

So I go back and check my lovelace resources and this is what is registered for the URL: "/hacsfiles/LG-WebOS-Remote-Control/null?hacstag=257005990201"

The "null" doesn't look right, so I check the file location and see that the relative path is /config/www/community/LG-WebOS-Remote-Control/lg-remote-control.js

So I got back to my lovelace resources and change the path to: replace "null" with "lg-remote-control.js" so the full path is: /hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js?hacstag=257005990201

Then I go back to my browser with lovelace, refresh and the remote works again. But if I go to /hacs/frontend the frontend integration displays in a red box with "Not loaded" at the top, but I know it's loaded because it works fine.
image

Additionally, each time I go to /hacs/entry I see a warning message, but again, I know everything is working properly: image

I've gone through a search of resources and I can't find a double entry pointing to the same .js file.

madmicio commented 9 months ago

fixed

briadelour commented 9 months ago

Confirmed! Thanks for the quick turnaround!