From b816715612dc724f5cc4743d164028a60d0f1ca6 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sat, 27 Jul 2019 07:31:32 -0400 Subject: [PATCH] Fixed outdoor temperature on system card cutting off instead of rounding --- js/component/card/system.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/component/card/system.js b/js/component/card/system.js index fd69ba1..1a6385c 100644 --- a/js/component/card/system.js +++ b/js/component/card/system.js @@ -82,9 +82,6 @@ beestat.component.card.system.prototype.decorate_circle_ = function(parent) { beestat.component.card.system.prototype.decorate_weather_ = function(parent) { var thermostat = beestat.cache.thermostat[beestat.setting('thermostat_id')]; - var temperature = beestat.temperature(thermostat.weather.temperature); - var temperature_whole = Math.floor(temperature); - var circle = $.createElement('div') .style({ 'padding': (beestat.style.size.gutter / 2), @@ -122,7 +119,11 @@ beestat.component.card.system.prototype.decorate_weather_ = function(parent) { 'font-size': '22px', 'font-weight': beestat.style.font_weight.light }) - .innerHTML(temperature_whole); + .innerHTML(beestat.temperature({ + 'round': 0, + 'units': false, + 'temperature': thermostat.weather.temperature + })); temperature_container.appendChild(temperature_whole_container); var humidity_container = $.createElement('div')