Fix weather module openweathermap not loading if lat and lon set without onecall. Lat and Lon take precedence over LocationID and Location.

This commit is contained in:
Robby Griffin
2021-03-11 12:48:41 -05:00
parent e4f47178fc
commit cdd1853369
2 changed files with 3 additions and 0 deletions

View File

@@ -465,6 +465,8 @@ WeatherProvider.register("openweathermap", {
} else {
params += "&exclude=minutely";
}
} else if (this.config.lat && this.config.lon) {
params += "lat=" + this.config.lat + "&lon=" + this.config.lon;
} else if (this.config.locationID) {
params += "id=" + this.config.locationID;
} else if (this.config.location) {