Skip to content

Commit

Permalink
Merge pull request #403 from shycats/main
Browse files Browse the repository at this point in the history
Fixed bug solar to battery line not showing
  • Loading branch information
flixlix authored Jan 14, 2024
2 parents 5405719 + 4e560fb commit 3c64965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/power-flow-card-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ export class PowerFlowCardPlus extends LitElement {
}
}
solar.state.toHome = 0;
} else if (battery.state.toBattery && battery.state.toBattery > 0) {
grid.state.toBattery = battery.state.toBattery;
} else {
grid.state.toBattery = 0;
}
grid.state.toBattery = (grid.state.toBattery ?? 0) > largestGridBatteryTolerance ? grid.state.toBattery : 0;

Expand Down

0 comments on commit 3c64965

Please sign in to comment.