From 76d5c5b60e9e05003296793b247c6c19dabef2a4 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 17 Jul 2022 17:08:57 +0200 Subject: [PATCH] BMW: fix vehicles list (#3876) --- vehicle/bmw/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vehicle/bmw/api.go b/vehicle/bmw/api.go index 00583decd..71b2d230e 100644 --- a/vehicle/bmw/api.go +++ b/vehicle/bmw/api.go @@ -29,7 +29,7 @@ type API struct { func NewAPI(log *util.Logger, brand string, identity oauth2.TokenSource) *API { v := &API{ Helper: request.NewHelper(log), - xUserAgent: fmt.Sprintf("android(SP1A.210812.016.C1);%s;2.5.2(14945)", brand), + xUserAgent: fmt.Sprintf("android(SP1A.210812.016.C1);%s;2.5.2(14945);row", brand), } // replace client transport with authenticated transport @@ -43,7 +43,7 @@ func NewAPI(log *util.Logger, brand string, identity oauth2.TokenSource) *API { func (v *API) eadrax() (VehiclesStatusResponse, error) { var res VehiclesStatusResponse - uri := fmt.Sprintf("%s/eadrax-vcs/v1/vehicles?apptimezone=60&appDateTime=%d", CocoApiURI, time.Now().Unix()) + uri := fmt.Sprintf("%s/eadrax-vcs/v1/vehicles?apptimezone=120&appDateTime=%d", CocoApiURI, time.Now().Unix()) req, err := request.New(http.MethodGet, uri, nil, map[string]string{ "Content-Type": request.JSONContent,