Tesla: ignore is_charging error
This commit is contained in:
parent
c928dd40f3
commit
6e88810fa9
1 changed files with 5 additions and 1 deletions
|
|
@ -212,7 +212,11 @@ var _ api.VehicleChargeController = (*Tesla)(nil)
|
|||
|
||||
// StartCharge implements the api.VehicleChargeController interface
|
||||
func (v *Tesla) StartCharge() error {
|
||||
return v.apiError(v.vehicle.StartCharging())
|
||||
err := v.apiError(v.vehicle.StartCharging())
|
||||
if err != nil && err.Error() == "is_charging" {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// StopCharge implements the api.VehicleChargeController interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue