Vehicle: add wakeupdisabled feature to suppress wake-up calls (#31461)

This commit is contained in:
andig 2026-07-04 14:04:38 +02:00 • committed by GitHub
parent 3a560d1254
commit 2bd319a361
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 67 additions and 10 deletions

View file

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