Skip to content

Commit

Permalink
Correct use of this.card
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Aldred committed Nov 4, 2023
1 parent a93c8bf commit 8756d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lux-power-distribution-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class LuxPowerDistributionCard extends HTMLElement {

const shadowRoot = this.shadowRoot;

const card = document.createElement('ha-card');
this.card = document.createElement('ha-card');
if (this._config.title) {
const header = document.createElement("h1");
header.classList.add('card-header');
header.appendChild(document.createTextNode(this._config.title));
card.appendChild(header);
this.card.appendChild(header);
}

this.content = document.createElement('div');
Expand Down

0 comments on commit 8756d05

Please sign in to comment.