diff --git a/vehicle/renault.go b/vehicle/renault.go index b9734743f7..8008fa1511 100644 --- a/vehicle/renault.go +++ b/vehicle/renault.go @@ -5,6 +5,7 @@ import ( "github.com/evcc-io/evcc/api" "github.com/evcc-io/evcc/util" + "github.com/evcc-io/evcc/util/request" "github.com/evcc-io/evcc/vehicle/renault" "github.com/evcc-io/evcc/vehicle/renault/gigya" "github.com/evcc-io/evcc/vehicle/renault/kamereon" @@ -39,9 +40,11 @@ func NewRenaultDaciaFromConfig(brand string, other map[string]interface{}) (api. embed `mapstructure:",squash"` User, Password, Region, VIN string Cache time.Duration + Timeout time.Duration }{ - Region: "de_DE", - Cache: interval, + Region: "de_DE", + Cache: interval, + Timeout: request.Timeout, } if err := util.DecodeOther(other, &cc); err != nil { @@ -65,6 +68,7 @@ func NewRenaultDaciaFromConfig(brand string, other map[string]interface{}) (api. api := kamereon.New(log, keys.Kamereon, identity, func() error { return identity.Login(cc.User, cc.Password) }) + api.Client.Timeout = cc.Timeout accountID, err := api.Person(identity.PersonID, brand)