From 36e4ed4e1e5617ac2de1c700f0be2b328238025d Mon Sep 17 00:00:00 2001 From: Arjan <44190435+vingerha@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:00:52 +0200 Subject: [PATCH 1/2] Fix for editor --- dist/content-card-linky-editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/content-card-linky-editor.js b/dist/content-card-linky-editor.js index eab61fe..7d3b1f3 100644 --- a/dist/content-card-linky-editor.js +++ b/dist/content-card-linky-editor.js @@ -11,7 +11,6 @@ const fireEvent = (node, type, detail, options) => { return event; }; - if ( !customElements.get("ha-switch") && customElements.get("paper-toggle-button") @@ -19,6 +18,10 @@ if ( customElements.define("ha-switch", customElements.get("paper-toggle-button")); } +if (!customElements.get("ha-entity-picker")) { + (customElements.get("hui-entities-card")).getConfigElement(); +} + const LitElement = customElements.get("hui-masonry-view") ? Object.getPrototypeOf(customElements.get("hui-masonry-view")) : Object.getPrototypeOf(customElements.get("hui-view")); const html = LitElement.prototype.html; const css = LitElement.prototype.css; From 08f01fc9101ee0750c198337993f363c57641996 Mon Sep 17 00:00:00 2001 From: Arjan <44190435+vingerha@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:09:56 +0200 Subject: [PATCH 2/2] Fix entitypicker v2 --- dist/content-card-linky-editor.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dist/content-card-linky-editor.js b/dist/content-card-linky-editor.js index 7d3b1f3..567f808 100644 --- a/dist/content-card-linky-editor.js +++ b/dist/content-card-linky-editor.js @@ -40,6 +40,18 @@ export class contentCardLinkyEditor extends LitElement { get _entity() { return this._config.entity || ""; } + + get _ewEntity() { + return this._config.ewEntity || ""; + } + + get _ewEntityJ1() { + return this._config.ewEntityJ1 || ""; + } + + get _ewEntityJ2() { + return this._config.ewEntityJ2 || ""; + } get _name() { return this._config.name || "";