Revert "Fixes the un-hide problem with currentwether and weatherforcast modules."

This commit is contained in:
Michael Teeuw
2020-10-13 16:14:52 +02:00
committed by GitHub
parent 8c04712784
commit 43b6c71205
3 changed files with 8 additions and 12 deletions

View File

@@ -495,12 +495,11 @@ Module.register("currentweather", {
this.sunriseSunsetTime = timeString;
this.sunriseSunsetIcon = sunrise < now && sunset > now ? "wi-sunset" : "wi-sunrise";
if (!this.hidden) {
this.show(this.config.animationSpeed, { lockString: this.identifier });
this.loaded = true;
this.updateDom(this.config.animationSpeed);
this.sendNotification("CURRENTWEATHER_DATA", { data: data });
}
this.show(this.config.animationSpeed, { lockString: this.identifier });
this.loaded = true;
this.updateDom(this.config.animationSpeed);
this.sendNotification("CURRENTWEATHER_DATA", { data: data });
},
/* scheduleUpdate()