Keba: align status with modbus version
This commit is contained in:
parent
f96a4266f6
commit
2687f0b3ba
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ func (c *KebaUdp) Status() (api.ChargeStatus, error) {
|
|||
return api.StatusB, nil
|
||||
}
|
||||
|
||||
return api.StatusA, fmt.Errorf("unexpected status: %+v", kr)
|
||||
return api.StatusNone, fmt.Errorf("invalid status: %+d", kr.State)
|
||||
}
|
||||
|
||||
// Enabled implements the api.Charger interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue