Skip to content

Commit

Permalink
Merge pull request #81 from vingerha/main
Browse files Browse the repository at this point in the history
Fix entitypicker
  • Loading branch information
vingerha authored Aug 20, 2023
2 parents 023e11a + 08f01fc commit 1fb762a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion dist/content-card-linky-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ const fireEvent = (node, type, detail, options) => {
return event;
};


if (
!customElements.get("ha-switch") &&
customElements.get("paper-toggle-button")
) {
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;
Expand All @@ -37,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 || "";
Expand Down

0 comments on commit 1fb762a

Please sign in to comment.