Skip to content

Commit

Permalink
fix: no timeout on hass upgrade. fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosabot committed Nov 22, 2024
1 parent f36bb14 commit 48a50f7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/streamline-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ import { version } from "../package.json";
set hass(hass) {
this._hass = hass;

setTimeout(() => {
const hasConfigChanged = this.parseConfig();
if (hasConfigChanged) {
this.updateCardConfig();
}
const hasConfigChanged = this.parseConfig();
if (hasConfigChanged) {
this.updateCardConfig();
}

this.updateCardHass();
}, 0);
this.updateCardHass();
}

prepareConfig() {
Expand Down

0 comments on commit 48a50f7

Please sign in to comment.