Battery UI: drop orphan grid charge headline on fresh installs (#30530)
This commit is contained in:
parent
233cd72a95
commit
29e5599c99
1 changed files with 5 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue