bramkragten / custom-ui

Lovelace custom-ui
177 stars 69 forks source link

Weather Card doesn't work with Home Assistant Cast #46

Closed freegink closed 5 years ago

freegink commented 5 years ago

When casting using Home Assistant Cast, it shows "Custom element doesn't exist: weather-card".

From reading the FAQ page of Home Assistant Card and reading the code of weather card, it's likely related to the way how LiteElement was retrieved with weather card.

const LitElement = Object.getPrototypeOf(
  customElements.get("ha-panel-lovelace")
);

FAQ page of Home Assistant Card: https://cast.home-assistant.io/faq.html

atze09 commented 5 years ago

I would also be interested in a fix of this problem. Thanks in advance

bramkragten commented 5 years ago

This is fixed, but in the new repo on the weather card, will add some clarification in this repo.

https://github.com/bramkragten/weather-card/