Skip to content

Commit

Permalink
Fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 13, 2024
1 parent 303dc06 commit c580dce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/loadpoint_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,11 @@ func (lp *Loadpoint) SetBatteryBoost(enable bool) error {
lp.log.DEBUG.Println("set battery boost:", enable)

if enable != (lp.batteryBoost != boostDisabled) {
lp.batteryBoost = boostStart
lp.publish(keys.BatteryBoost, enable)

lp.batteryBoost = boostDisabled
if enable {
lp.batteryBoost = boostStart
lp.requestUpdate()
}
}
Expand Down

0 comments on commit c580dce

Please sign in to comment.