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

Fix error if custom element has already been defined #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DennisGaida
Copy link

Getting the following error:

ERROR (MainThread) [frontend.js.modern.202410023] Uncaught error 
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "tempometer-gauge-card" has already been used with this registry
12293/</window.CustomElementRegistry.prototype.define (src/scoped-custom-element-registry.js:44:14)
/hacsfiles/lovelace-tempometer-gauge-card-deprecated/tempometer-gauge-card.js:418:16

This PR checks whether the element is already defined.

I understand you renamed this repo to deprecated. If you really want to stop developing/enhancing this (your version still works perfectly for me), you can also archive a repo in Github.

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

Successfully merging this pull request may close these issues.

1 participant