Skip to content

Commit

Permalink
fixed the actual bug that started this whole process
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Latourelle authored and Will Latourelle committed May 5, 2020
1 parent 55d2f7f commit 301b0f5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dist/animated-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,18 @@ function run() {
document.querySelector("home-assistant").provideHass({
set hass(value) {
Haobj = value;
renderBackgroundHTML();
var current_config = currentConfig();
if (Loaded) {
if (current_config.entity) {
var current_state = getEntityState(current_config.entity);
if (Previous_State != current_state) {
renderBackgroundHTML();
}
}
}
else {
renderBackgroundHTML();
}
}
});
}
Expand Down

0 comments on commit 301b0f5

Please sign in to comment.