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

Failed to execute 'define' on 'CustomElementRegistry': the name "rpi-monitor-card-editor" has already been used with this registry #66

Open
2 tasks done
redlefloh opened this issue Jan 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@redlefloh
Copy link

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

v1.4.2

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

Browser: Chrome Version 132.0.6834.83 (Official Build) (x86_64)
OS: MacOS 12.7.6

Description of problem

I have two RPI Monitoring Cards for two different Raspberry Pis in my Lovelace dashboard:

type: custom:rpi-monitor-card
entity: sensor.rpi_raspi5_1_rpi_monitor_raspi5_1
name: RasPi5 1
show_name: false
card_style: full
temp_scale: C

and

type: custom:rpi-monitor-card
entity: sensor.rpi_raspi5_2_rpi_monitor_raspi5_2
name: RasPi5 2
show_name: false
card_style: full
temp_scale: C

If I open the page with the two cards, everything looks fine, but I get the following error messages in the logs (every time I go to that page):

2025-01-25 23:22:05.137 ERROR (MainThread) [frontend.js.modern.202501092] Uncaught error from Chrome 132.0.0.0 on Mac OS 10.15.7
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "rpi-monitor-card-editor" has already been used with this registry
window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14)
/hacsfiles/lovelace-rpi-monitor-card/rpi-monitor-card.js:29:61
/hacsfiles/lovelace-rpi-monitor-card/rpi-monitor-card.js:29:76
t (/hacsfiles/lovelace-rpi-monitor-card/rpi-monitor-card.js:1:250)
/hacsfiles/lovelace-rpi-monitor-card/rpi-monitor-card.js:174:184

Any suggestions how to correct this? Thanks!

Errors in Browser Console

No response

Additional information

No response

@redlefloh redlefloh added the bug Something isn't working label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant