Add Alpine vehicles (#29927)

This commit is contained in:
Nils 2026-05-16 12:59:11 +02:00 • committed by GitHub
parent f3aba1b096
commit 9cc0da1a86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

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

View file

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