diff --git a/js/component/card/runtime_thermostat_summary.js b/js/component/card/runtime_thermostat_summary.js index df1447d..a18b083 100755 --- a/js/component/card/runtime_thermostat_summary.js +++ b/js/component/card/runtime_thermostat_summary.js @@ -379,16 +379,22 @@ beestat.component.card.runtime_thermostat_summary.prototype.get_buckets_combined bucket[key] = sum / bucket[key].length; if (key.substring(key.length - 11) === 'temperature') { - bucket[key] = beestat.temperature(Math.round(bucket[key] * 10) / 10); - } else { - bucket[key] = Math.round(bucket[key]); + bucket[key] = beestat.temperature(bucket[key]); } + + bucket[key] = Math.round(bucket[key]); break; case 'min': bucket[key] = Math.min.apply(null, bucket[key]); + if (key.substring(key.length - 11) === 'temperature') { + bucket[key] = beestat.temperature(bucket[key]); + } break; case 'max': bucket[key] = Math.max.apply(null, bucket[key]); + if (key.substring(key.length - 11) === 'temperature') { + bucket[key] = beestat.temperature(bucket[key]); + } break; case 'sum': bucket[key] = bucket[key].reduce(function(accumulator, current_value) {