Kia: fix login
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled

This commit is contained in:
andig 2023-07-03 16:10:30 +02:00
parent 2816102147
commit 8e5676069e
4 changed files with 5 additions and 4 deletions

View file

@ -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
}

View file

@ -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

View file

@ -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,
}

View file

@ -11,7 +11,7 @@ import (
)
const (
KiaAppID = "e7bcd186-a5fd-410d-92cb-6876a42288bd"
KiaAppID = "a2b8469b-30a3-4361-8e13-6fceea8fbe74"
HyundaiAppID = "014d2225-8495-4735-812d-2616334fd15d"
)