Kia: fix login
Some checks failed
Some checks failed
This commit is contained in:
parent
2816102147
commit
8e5676069e
4 changed files with 5 additions and 4 deletions
|
|
@ -8,6 +8,9 @@ import (
|
|||
"github.com/evcc-io/evcc/vehicle/bluelink"
|
||||
)
|
||||
|
||||
// https://github.com/Hacksore/bluelinky
|
||||
// https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/pull/353/files
|
||||
|
||||
// Bluelink is an api.Vehicle implementation
|
||||
type Bluelink struct {
|
||||
*embed
|
||||
|
|
@ -81,7 +84,6 @@ func newBluelinkFromConfig(brand string, other map[string]interface{}, settings
|
|||
return v.VIN
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ const (
|
|||
var ErrAuthFail = errors.New("authorization failed")
|
||||
|
||||
// API implements the Kia/Hyundai bluelink api.
|
||||
// Based on https://github.com/Hacksore/bluelinky.
|
||||
type API struct {
|
||||
*request.Helper
|
||||
baseURI string
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ func (v *Identity) getDeviceID() (string, error) {
|
|||
uuid := uuid.NewString()
|
||||
data := map[string]interface{}{
|
||||
"pushRegId": lo.RandomString(64, []rune("0123456789ABCDEF")),
|
||||
"pushType": "GCM",
|
||||
"pushType": "APNS",
|
||||
"uuid": uuid,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
KiaAppID = "e7bcd186-a5fd-410d-92cb-6876a42288bd"
|
||||
KiaAppID = "a2b8469b-30a3-4361-8e13-6fceea8fbe74"
|
||||
HyundaiAppID = "014d2225-8495-4735-812d-2616334fd15d"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue