ulic75 / power-flow-card

A power distribution card inspired by the official Energy Distribution card for Home Assistant
170 stars 27 forks source link

Custom element doesn't exist: power-flow-card #96

Closed slyglif closed 2 years ago

slyglif commented 2 years ago

I'm not sure if this is something I'm doing wrong, or if something changed in the latest HA release, but when I try to add the card to a dashboard I get the error "Custom element doesn't exist: power-flow-card". I have added it to the resources. For reference, I did add and get the content-card-example working using the same procedure.

I'm running HA 2022.7.7 / 20220707.1 from the official container image.

ulic75 commented 2 years ago

I'm not having any issues with 2022.7.7. I'd guess that it's no loading correctly. I don't know if you know how to look at network calls in your browser, but I would guess that it's not getting loaded correctly because of a typo or something like that.

slyglif commented 2 years ago

I don't think it's a typo, as I see "power-flow-card.js" in the Sources section of Develop view in Safari. I do see the following error int he Console section: "[Error] Unhandled Promise Rejection: "https://HOSTNAME:8123/local/power-flow-card.js"

slyglif commented 2 years ago

OK, not sure what it was, but recreating the container and restarting Safari seems to have fixed it. Sorry for the noise!

Also, ty for this card, it is actually what I was looking for!

blundell commented 2 years ago

Had the same problem in chrome. Doing a "empty cache + hard reload" fixed it 👍