Re-add pairing check (#2476)
The new API doesn't seem to have a replacement for this yet, and the "old" check works with cars needing the new API for getting SoC values. So we just add the check back in for now.
This commit is contained in:
parent
ede80365cc
commit
dcb6b65002
1 changed files with 3 additions and 3 deletions
|
|
@ -69,9 +69,9 @@ func NewPorscheFromConfig(other map[string]interface{}) (api.Vehicle, error) {
|
|||
}
|
||||
|
||||
// check if vehicle is paired
|
||||
// if res, err := api.PairingStatus(cc.VIN); err == nil && res.Status != porsche.PairingComplete {
|
||||
// return nil, errors.New("vehicle is not paired with the My Porsche account")
|
||||
// }
|
||||
if res, err := api.PairingStatus(cc.VIN); err == nil && res.Status != porsche.PairingComplete {
|
||||
return nil, errors.New("vehicle is not paired with the My Porsche account")
|
||||
}
|
||||
|
||||
// check if vehicle provides status:
|
||||
// some PHEVs do not provide any data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue