aex351 / home-assistant-neerslag-card

Display Buienalarm and/or Buienradar data in a graph for Home Assistant.
29 stars 3 forks source link

het-weer:1 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "neerslag-card" has already been used with this registry #42

Closed robinwillems closed 9 months ago

robinwillems commented 9 months ago

Hi there, i'm getting the error in the Google Developer console:

het-weer:1 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "neerslag-card" has already been used with this registry

Card type:

type: custom:neerslag-card
entities:
  - sensor.neerslag_buienalarm_regen_data
  - sensor.neerslag_buienradar_regen_data
title: Neerslag Apeldoorn
autozoom: true

Card version: 2022.07.08.0

Home Assistant 2023.9.2 Supervisor 2023.09.2 Operating System 10.5 Frontend-versie: 20230911.0 - latest

Only one neerslag-card resource is loaded: Javasscript Resource: /hacsfiles/home-assistant-neerslag-card/neerslag-card.js?hacstag=342944383202207080 Buienradar and buienalarm are both activated in the integration

Any ideas how to fix this? The card itself looks like it working normally.

robinwillems commented 9 months ago

Nevermind, apparently i installed both Neerslag Card and Neerslag App individually. But the Neerslag App (integration) is an all-in-one package containing the card also. That is why it attempted to load it twice.