Skip to content

Commit

Permalink
adjust to api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni committed Nov 16, 2023
1 parent 2944f36 commit c9b8ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meter/powerwall.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (m *PowerWall) SetBatteryMode(mode api.BatteryMode) error {
if err := m.energySite.SetBatteryReserve(uint64(m.defaultBatteryReserve)); err != nil {
return err
}
case api.BatteryLocked: // set minSoc to currentSoc
case api.BatteryHold: // set minSoc to currentSoc
ess, err := m.energySite.EnergySiteStatus()
if err != nil {
return err
Expand Down

0 comments on commit c9b8ff2

Please sign in to comment.