Skip to content

Commit 3c64965

Browse files
authored
Merge pull request #403 from shycats/main
Fixed bug solar to battery line not showing
2 parents 5405719 + 4e560fb commit 3c64965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/power-flow-card-plus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ export class PowerFlowCardPlus extends LitElement {
327327
}
328328
}
329329
solar.state.toHome = 0;
330-
} else if (battery.state.toBattery && battery.state.toBattery > 0) {
331-
grid.state.toBattery = battery.state.toBattery;
330+
} else {
331+
grid.state.toBattery = 0;
332332
}
333333
grid.state.toBattery = (grid.state.toBattery ?? 0) > largestGridBatteryTolerance ? grid.state.toBattery : 0;
334334

0 commit comments

Comments
 (0)