Skip to content

Commit

Permalink
Fix getting lovelace
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Aug 16, 2024
1 parent 09fada5 commit 3239911
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wallpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ScreenWakeLock {
}
}

const version = "4.25.6";
const version = "4.25.7";
const defaultConfig = {
enabled: false,
enabled_on_tabs: [],
Expand Down Expand Up @@ -670,7 +670,7 @@ class WallpanelView extends HuiView {
this.lastEnergyCollectionUpdate = 0;
this.screensaverStopNavigationPathTimeout = null;

this.lovelace = getHaPanelLovelace().__lovelace;
this.lovelace = null;
this.__hass = elHass.__hass;
this.__cards = [];
this.__badges = [];
Expand Down Expand Up @@ -1108,6 +1108,7 @@ class WallpanelView extends HuiView {

createInfoBoxContent() {
logger.debug("Creating info box content");
this.lovelace = getHaPanelLovelace().__lovelace;
this.infoBoxContentCreatedDate = new Date();
this.infoBoxContent.innerHTML = '';
this.__badges = [];
Expand Down Expand Up @@ -3644,3 +3645,4 @@ EXIF.pretty = function(img) {
EXIF.readFromBinaryFile = function(file) {
return findEXIFinJPEG(file);
}

0 comments on commit 3239911

Please sign in to comment.