Fix warning in weather provider

This commit is contained in:
veeck
2021-06-30 16:00:26 +02:00
parent bcc0cc599d
commit bcff953fbb
3 changed files with 7 additions and 5 deletions

View File

@@ -359,7 +359,7 @@ WeatherProvider.register("envcanada", {
var lastDate = moment(baseDate, "YYYYMMDDhhmmss");
for (var stepDay = nextDay; stepDay < lastDay; stepDay += 2) {
var weather = new WeatherObject(this.config.units, this.config.tempUnits, this.config.windUnits);
let weather = new WeatherObject(this.config.units, this.config.tempUnits, this.config.windUnits);
// Add 1 to the date to reflect the current forecast day we are building