fix documentation currentweather and weatherforecast function

roundValue:

This function toFixed return a string type not a number value.
This commit is contained in:
Rodrigo Ramírez Norambuena
2017-03-27 12:18:36 -03:00
parent 9285da6c12
commit 60c5d96037
2 changed files with 2 additions and 2 deletions

View File

@@ -356,7 +356,7 @@ Module.register("weatherforecast",{
*
* argument temperature number - Temperature.
*
* return number - Rounded Temperature.
* return string - Rounded Temperature.
*/
roundValue: function(temperature) {
var decimals = this.config.roundTemp ? 0 : 1;