diff --git a/templates/definition/vehicle/alpine.yaml b/templates/definition/vehicle/alpine.yaml new file mode 100644 index 000000000..bee710624 --- /dev/null +++ b/templates/definition/vehicle/alpine.yaml @@ -0,0 +1,10 @@ +template: myalpine +products: + - brand: Alpine +params: + - preset: vehicle-base + - preset: vehicle-features +render: | + type: myalpine + {{ include "vehicle-base" . }} + {{ include "vehicle-features" . }} diff --git a/vehicle/renault.go b/vehicle/renault.go index 6a0b140e0..3599f078d 100644 --- a/vehicle/renault.go +++ b/vehicle/renault.go @@ -27,6 +27,9 @@ type Renault struct { } func init() { + registry.Add("myalpine", func(other map[string]any) (api.Vehicle, error) { + return NewRenaultDaciaFromConfig("myalpine", other) + }) registry.Add("dacia", func(other map[string]any) (api.Vehicle, error) { return NewRenaultDaciaFromConfig("dacia", other) })