From 29e5599c993b9b1453554c45cdc2e21bfd9634e0 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Fri, 5 Jun 2026 11:06:30 +0200 Subject: [PATCH] Battery UI: drop orphan grid charge headline on fresh installs (#30530) --- assets/js/views/Battery.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/js/views/Battery.vue b/assets/js/views/Battery.vue index f0afdff7c..074898f4f 100644 --- a/assets/js/views/Battery.vue +++ b/assets/js/views/Battery.vue @@ -61,8 +61,11 @@ export default defineComponent({ devices.some(({ controllable }) => controllable) && this.state.smartCostAvailable ); }, + gridChargeLimit() { + return this.state.batteryGridChargeLimit ?? null; + }, gridChargeVisible() { - return this.gridChargePossible || this.state.batteryGridChargeLimit !== null; + return this.gridChargePossible || this.gridChargeLimit !== null; }, gridChargeTariff() { const { forecast, smartCostType } = this.state; @@ -70,7 +73,7 @@ export default defineComponent({ }, smartCostLimitProps() { return { - currentLimit: this.state.batteryGridChargeLimit ?? null, + currentLimit: this.gridChargeLimit, lastLimit: settings.lastBatterySmartCostLimit, smartCostType: this.state.smartCostType, currency: this.state.currency,