Add file for custom card support (#3440)

This commit is contained in:
Paulus Schoutsen 2019-07-30 11:47:01 -07:00 committed by GitHub
parent b158f15d93
commit 70b06861d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,10 @@
import "@polymer/app-route/app-location"; import "@polymer/app-route/app-location";
import { html, LitElement, PropertyValues, css, property } from "lit-element"; import { html, PropertyValues, property } from "lit-element";
import "./home-assistant-main"; import "./home-assistant-main";
import "./ha-init-page"; import "./ha-init-page";
import "../resources/ha-style"; import "../resources/ha-style";
import "../resources/custom-card-support";
import { registerServiceWorker } from "../util/register-service-worker"; import { registerServiceWorker } from "../util/register-service-worker";
import { DEFAULT_PANEL } from "../common/const"; import { DEFAULT_PANEL } from "../common/const";
@ -11,9 +12,6 @@ import { Route, HomeAssistant } from "../types";
import { navigate } from "../common/navigate"; import { navigate } from "../common/navigate";
import { HassElement } from "../state/hass-element"; import { HassElement } from "../state/hass-element";
(LitElement.prototype as any).html = html;
(LitElement.prototype as any).css = css;
export class HomeAssistantAppEl extends HassElement { export class HomeAssistantAppEl extends HassElement {
@property() private _route?: Route; @property() private _route?: Route;
@property() private _error?: boolean; @property() private _error?: boolean;

View File

@ -0,0 +1,4 @@
import { LitElement, html, css } from "lit-element";
(LitElement.prototype as any).html = html;
(LitElement.prototype as any).css = css;