Skip to content

Commit

Permalink
Fix compatibility issue with 2024.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Jun 6, 2024
1 parent a8be589 commit 4fc8349
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.1";
const version = "4.25.2";
const defaultConfig = {
enabled: false,
enabled_on_tabs: [],
Expand Down Expand Up @@ -1142,7 +1142,8 @@ class WallpanelView extends HuiView {
cardConfig.collection_key = "energy_wallpanel";
this.energyCollectionUpdateEnabled = true;
}
const cardElement = this.createCardElement(cardConfig);
const createCardElement = this._createCardElement ? this._createCardElement : this.createCardElement;
const cardElement = createCardElement.bind(this)(cardConfig);
cardElement.hass = this.hass;

this.__cards.push(cardElement);
Expand Down Expand Up @@ -3621,3 +3622,4 @@ EXIF.pretty = function(img) {
EXIF.readFromBinaryFile = function(file) {
return findEXIFinJPEG(file);
}

0 comments on commit 4fc8349

Please sign in to comment.