When trying to cast a view using cast.show_lovelace_view the red error box displays. Seems like custom cards require this line:
var LitElement = LitElement || Object.getPrototypeOf(customElements.get("hui-view"));
https://community.home-assistant.io/t/home-assistant-cast-with-custom-cards/137457
When trying to cast a view using cast.show_lovelace_view the red error box displays. Seems like custom cards require this line:
var LitElement = LitElement || Object.getPrototypeOf(customElements.get("hui-view"));https://community.home-assistant.io/t/home-assistant-cast-with-custom-cards/137457