Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Log: lg-remote-control-editor" has already been used #141

Open
nicknol opened this issue Jan 13, 2024 · 10 comments
Open

Error in Log: lg-remote-control-editor" has already been used #141

nicknol opened this issue Jan 13, 2024 · 10 comments

Comments

@nicknol
Copy link

nicknol commented Jan 13, 2024

Every now and then I get the following error in the HA logs

Uncaught error from Firefox 121.0 on Windows 10 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "lg-remote-control-editor" has already been used with this registry 87659/</window.CustomElementRegistry.prototype.define (src/scoped-custom-element-registry.js:44:14) ct/< (/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:30:100) t (/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:1:250) /hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:272:27

I'm running version 2.0.2 of LG WebOS Remote Control.

@k-a-r-g
Copy link

k-a-r-g commented Jan 21, 2024

Same Error, same LG WebOS Remote Control Version.

@piotrtobolski
Copy link

Same for me:

2024-07-21 13:40:40.519 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from WebKit 605.1.15 on iOS 17.5.1
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "lg-remote-control-editor" has already been used with this registry
message (node_modules/core-js/modules/web.dom-exception.stack.js:25:24)
src/scoped-custom-element-registry.js:45:10
/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:30:106
t (/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:1:251)
module code (/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:272:28)
2024-07-21 13:53:07.485 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Chrome WebView 126.0.6478.134 on Android 12
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "lg-remote-control-editor" has already been used with this registry
window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14)
/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:30:100
t (/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:1:250)
/hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js:272:27

Is it this repo code issue or HACS itself? Or maybe just HA?

@h4nnes
Copy link

h4nnes commented Jul 26, 2024

Same here. Is there already a fix known?

@pico1881
Copy link

Same error in logs for me, HA version 2024.7.3

@domodominik
Copy link

Same error for me on version 2024.8.3, do we know any solutions ?

@homecowboy
Copy link

Same here and integration doesn't work at all... Running 2.0.3 and HA 2024.8.3

@homecowboy
Copy link

Same here and integration doesn't work at all... Running 2.0.3 and HA 2024.8.3

UPDATE: I tried to unistall reinstall the device and all work.
The original installation of device and integration was on YAML and then migrated to UI. I don't know if this matters... It has worked for months

@Megarushing
Copy link

Same happening here, I have 2 LG TVs on my dashboard, maybe thats the reason?

@Scope666
Copy link

Error: Failed to execute 'define' on 'CustomElementRegistry': the name "lg-remote-control-editor" has already been used with this registry

I also have 2 LG OLEDs on the network ... hmmmmm

@Stestanich
Copy link

Same happening here, I have 2 LG TVs on my dashboard, maybe thats the reason?

same error for me with 2 TVs. did you try uninstalling and installing integration?
iirc the error appeared when I added the second device, but I may be wrong.
besides this error, everything seems to work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants