Vehicle: add wakeupdisabled feature to suppress wake-up calls (#31461)
This commit is contained in:
parent
3a560d1254
commit
2bd319a361
10 changed files with 67 additions and 10 deletions
|
|
@ -42,9 +42,9 @@ func TestTemplates(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
// universalVehicleFeatures render via the shared vehicle-features include, so a
|
||||
// onlineVehicleFeatures render via the shared vehicle-features include, so a
|
||||
// stored config may carry them; dropping the param breaks reload (discussion #31291).
|
||||
var universalVehicleFeatures = []string{"climaterdisabled", "autodetectdisabled"}
|
||||
var onlineVehicleFeatures = []string{"climaterdisabled", "autodetectdisabled", "wakeupdisabled"}
|
||||
|
||||
func TestVehicleFeatureParamsConsistent(t *testing.T) {
|
||||
for _, tmpl := range templates.ByClass(templates.Vehicle, templates.WithDeprecated()) {
|
||||
|
|
@ -52,7 +52,7 @@ func TestVehicleFeatureParamsConsistent(t *testing.T) {
|
|||
continue
|
||||
}
|
||||
|
||||
for _, feat := range universalVehicleFeatures {
|
||||
for _, feat := range onlineVehicleFeatures {
|
||||
values := tmpl.Defaults(templates.RenderModeUnitTest)
|
||||
values["template"] = tmpl.Template
|
||||
values[feat] = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue