UI: remove battery power threshold (#6540)

This commit is contained in:
Michael Geers 2023-03-01 12:33:09 +01:00 • committed by GitHub
parent e5e583b180
commit f99fd4c80e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,15 +193,11 @@ export default {
pvProduction: function () {
return Math.abs(this.pvPower);
},
batteryPowerAdjusted: function () {
const batteryPowerThreshold = 50;
return Math.abs(this.batteryPower) < batteryPowerThreshold ? 0 : this.batteryPower;
},
batteryDischarge: function () {
return Math.abs(Math.max(0, this.batteryPowerAdjusted));
return Math.abs(Math.max(0, this.batteryPower));
},
batteryCharge: function () {
return Math.abs(Math.min(0, this.batteryPowerAdjusted) * -1);
return Math.abs(Math.min(0, this.batteryPower) * -1);
},
selfConsumption: function () {
const ownPower = this.batteryDischarge + this.pvProduction;