Battery boost: mode change (#16705)

This commit is contained in:
Michael Geers 2024-10-17 21:39:59 +02:00 • committed by GitHub
parent 5c5a5af551
commit 8aab01f5a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<template>
<svg :style="svgStyle" viewBox="0 0 48 48">
<g id="Your_Icons">
<g>
<path
fill="currentColor"
d="M35,9.996l-3,0l0,-4c0,-1.097 -0.903,-2 -2,-2l-12,0c-1.097,0 -2,0.903 -2,2l0,4l-3,0c-1.097,0 -2,0.903 -2,2l0,30c0,1.097 0.903,2 2,2l22,0c1.097,0 2,-0.903 2,-2l0,-30c0,-1.097 -0.903,-2 -2,-2Zm-15,-2l8,-0l0,2l-8,-0l0,-2Zm13,32l-18,0l0,-26l18,0l0,26Z"

View file

@ -57,7 +57,8 @@ func (lp *Loadpoint) SetMode(mode api.ChargeMode) {
if lp.mode != mode {
lp.setMode(mode)
lp.batteryBoost = 0
lp.batteryBoost = boostDisabled
lp.publish(keys.BatteryBoost, false)
// reset timers
switch mode {