Fix configure for charger w/o meter implementation
When a charger doesn't have a meter implementation, this should also return the proper state, so configure can ask for a meter.
This commit is contained in:
parent
4de9077a99
commit
70c267c16a
1 changed files with 2 additions and 0 deletions
|
|
@ -91,6 +91,8 @@ func (d *DeviceTest) testCharger(v interface{}) (DeviceTestResult, error) {
|
|||
if _, err := v.CurrentPower(); err != nil {
|
||||
return DeviceTestResultValidMissingMeter, nil
|
||||
}
|
||||
} else {
|
||||
return DeviceTestResultValidMissingMeter, nil
|
||||
}
|
||||
|
||||
return DeviceTestResultValid, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue