Move ignoreToday logic into template to fix undefined forecast

This commit is contained in:
rejas
2021-08-01 09:39:07 +02:00
parent 99114b2a61
commit 745a5f0376
2 changed files with 5 additions and 6 deletions

View File

@@ -132,10 +132,6 @@ Module.register("weather", {
getTemplateData: function () {
const forecast = this.weatherProvider.weatherForecast();
if (this.config.ignoreToday) {
forecast.splice(0, 1);
}
return {
config: this.config,
current: this.weatherProvider.currentWeather(),