Heatpump: reset session energy when status off (#22032)
Some checks failed
Some checks failed
This commit is contained in:
parent
93e87b5a54
commit
c5fe5b5241
1 changed files with 4 additions and 0 deletions
|
|
@ -122,6 +122,10 @@ func (wb *Heatpump) setMaxPower(power int64) error {
|
|||
|
||||
// Status implements the api.Charger interface
|
||||
func (wb *Heatpump) Status() (api.ChargeStatus, error) {
|
||||
if wb.lp != nil && wb.lp.GetMode() == api.ModeOff {
|
||||
return api.StatusA, nil
|
||||
}
|
||||
|
||||
power, err := wb.getMaxPower()
|
||||
if err != nil {
|
||||
return api.StatusNone, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue