Set temperature rounding.

This commit is contained in:
Michael Teeuw
2017-10-18 12:19:02 +02:00
parent ec2169e079
commit 241ff5cb6e
2 changed files with 2 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
</div>
<div class="large light">
<span class="wi weathericon wi-{{current.weatherType}}"></span>
<span class="bright"> {{current.temperature | round(1)}}°</span></div> <!-- should show in correct number of decimals -->
<span class="bright"> {{current.temperature | round(0 if config.roundTemp else 1)}}°</span></div>
</div>
{% endif %}

View File

@@ -93,8 +93,7 @@ Module.register("weather",{
return {
config: this.config,
current: this.weatherProvider.currentWeather(),
forecast: this.weatherProvider.weatherForecast(),
myBoolean: true
forecast: this.weatherProvider.weatherForecast()
}
},