Enyaq: add timeout (#7009)
This commit is contained in:
parent
09a05d000e
commit
73076e8f8f
3 changed files with 5 additions and 0 deletions
|
|
@ -6,7 +6,10 @@ products:
|
|||
params:
|
||||
- preset: vehicle-base
|
||||
- preset: vehicle-identify
|
||||
- name: timeout
|
||||
default: 10s
|
||||
render: |
|
||||
type: enyaq
|
||||
{{ include "vehicle-base" . }}
|
||||
{{ include "vehicle-identify" . }}
|
||||
timeout: {{ .timeout }}
|
||||
|
|
|
|||
|
|
@ -28,3 +28,4 @@ render:
|
|||
maxCurrent: 16 # Definiert die maximale Stromstärke pro angeschlossener Phase mit welcher das Fahrzeug geladen werden soll # Optional
|
||||
identifiers: # Kann meist erst später eingetragen werden, siehe: https://docs.evcc.io/docs/guides/vehicles/#erkennung-des-fahrzeugs-an-der-wallbox # Optional
|
||||
priority: # Priorität des Ladepunktes oder Fahrzeugs in Relation zu anderen Ladepunkten oder Fahrzeugen für die Zuweisung von PV-Energie # Optional
|
||||
timeout: 10s # Optional
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ func NewEnyaqFromConfig(other map[string]interface{}) (api.Vehicle, error) {
|
|||
}
|
||||
|
||||
api := skoda.NewAPI(log, ts)
|
||||
api.Client.Timeout = cc.Timeout
|
||||
|
||||
vehicle, err := ensureVehicleEx(
|
||||
cc.VIN, api.Vehicles,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue