mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Add file for custom card support (#3440)
This commit is contained in:
parent
b158f15d93
commit
70b06861d1
@ -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;
|
||||||
|
4
src/resources/custom-card-support.ts
Normal file
4
src/resources/custom-card-support.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { LitElement, html, css } from "lit-element";
|
||||||
|
|
||||||
|
(LitElement.prototype as any).html = html;
|
||||||
|
(LitElement.prototype as any).css = css;
|
Loading…
x
Reference in New Issue
Block a user