From 5f06fc381c6462095774905d37bc942101d90401 Mon Sep 17 00:00:00 2001 From: avidit Date: Tue, 8 Jun 2021 21:49:02 -0400 Subject: [PATCH] Upgrade to Lit 2.0 - https://github.com/postlund/home-card/issues/25 - https://developers.home-assistant.io/blog/2021/05/19/lit-2.0/ --- home-card.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home-card.js b/home-card.js index c497359..204c7c6 100644 --- a/home-card.js +++ b/home-card.js @@ -1,12 +1,12 @@ import { THEMES } from './themes.js'; -const LitElement = Object.getPrototypeOf( - customElements.get("ha-panel-lovelace") -); -const html = LitElement.prototype.html; -const css = LitElement.prototype.css; +import { + LitElement, + html, + css, +} from 'https://unpkg.com/lit-element@2.0.1/lit-element.js?module'; -const VERSION = 3; +const VERSION = 4; // From weather-card const fireEvent = (node, type, detail, options) => {