Update jsdocs

This commit is contained in:
veeck
2021-09-02 20:35:43 +02:00
parent a273266e5e
commit 9ee11654a6
2 changed files with 8 additions and 7 deletions

View File

@@ -232,16 +232,16 @@ WeatherProvider.register("ukmetoffice", {
return windCardinals.hasOwnProperty(windDirection) ? windCardinals[windDirection] : null;
},
/*
/**
* Generates an url with api parameters based on the config.
*
* return String - URL params.
* @param {string} forecastType daily or 3hourly forecast
* @returns {string} url
*/
getParams(forecastType) {
let params = "?";
params += "res=" + forecastType;
params += "&key=" + this.config.apiKey;
return params;
}
});