We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5405719 + 4e560fb commit 3c64965Copy full SHA for 3c64965
src/power-flow-card-plus.ts
@@ -327,8 +327,8 @@ export class PowerFlowCardPlus extends LitElement {
327
}
328
329
solar.state.toHome = 0;
330
- } else if (battery.state.toBattery && battery.state.toBattery > 0) {
331
- grid.state.toBattery = battery.state.toBattery;
+ } else {
+ grid.state.toBattery = 0;
332
333
grid.state.toBattery = (grid.state.toBattery ?? 0) > largestGridBatteryTolerance ? grid.state.toBattery : 0;
334
0 commit comments