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:
parent
55f9aae26f
commit
382e899a33
@ -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]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user