Add Alpine vehicles (#29927)
This commit is contained in:
parent
f3aba1b096
commit
9cc0da1a86
2 changed files with 13 additions and 0 deletions
10
templates/definition/vehicle/alpine.yaml
Normal file
10
templates/definition/vehicle/alpine.yaml
Normal 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" . }}
|
||||||
|
|
@ -27,6 +27,9 @@ type Renault struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
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) {
|
registry.Add("dacia", func(other map[string]any) (api.Vehicle, error) {
|
||||||
return NewRenaultDaciaFromConfig("dacia", other)
|
return NewRenaultDaciaFromConfig("dacia", other)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue