diff --git a/src/panels/lovelace/entity-rows/hui-error-entity-row.ts b/src/panels/lovelace/entity-rows/hui-error-entity-row.ts new file mode 100644 index 0000000000..dcb68c57d6 --- /dev/null +++ b/src/panels/lovelace/entity-rows/hui-error-entity-row.ts @@ -0,0 +1,39 @@ +import { html, LitElement } from "@polymer/lit-element"; +import { TemplateResult } from "lit-html"; + +class HuiErrorEntityRow extends LitElement { + public entity?: string; + + static get properties() { + return { + entity: {}, + }; + } + + protected render(): TemplateResult { + return html` + ${this.renderStyle()} + Entity not available: ${this.entity || ""} + `; + } + + private renderStyle(): TemplateResult { + return html` + + `; + } +} + +declare global { + interface HTMLElementTagNameMap { + "hui-error-entity-row": HuiErrorEntityRow; + } +} + +customElements.define("hui-error-entity-row", HuiErrorEntityRow);