1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #158 - Runtime Summary - Temperature units are correct but values are in °F

Forgot to convert that value to °C for my Metric friends.
This commit is contained in:
Jon Ziebell 2019-10-20 13:41:47 -04:00
parent 55f9aae26f
commit 382e899a33

View File

@ -379,7 +379,7 @@ beestat.component.card.runtime_thermostat_summary.prototype.get_buckets_combined
bucket[key] = sum / bucket[key].length; bucket[key] = sum / bucket[key].length;
if (key.substring(key.length - 11) === 'temperature') { if (key.substring(key.length - 11) === 'temperature') {
bucket[key] = Math.round(bucket[key] * 10) / 10; bucket[key] = beestat.temperature(Math.round(bucket[key] * 10) / 10);
} else { } else {
bucket[key] = Math.round(bucket[key]); bucket[key] = Math.round(bucket[key]);
} }