From f99fd4c80ea7b91fa3ce2f1bf58fa54bfb0ff29d Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Wed, 1 Mar 2023 12:33:09 +0100 Subject: [PATCH] UI: remove battery power threshold (#6540) --- assets/js/components/Energyflow/Energyflow.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/js/components/Energyflow/Energyflow.vue b/assets/js/components/Energyflow/Energyflow.vue index 9382bd35b..2d776335e 100644 --- a/assets/js/components/Energyflow/Energyflow.vue +++ b/assets/js/components/Energyflow/Energyflow.vue @@ -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;