Config UI: hide disabled vehicles from loadpoint default-vehicle dropdown (#33125)

This commit is contained in:
github-actions[bot] 2026-08-24 06:22:48 +00:00 • committed by GitHub
parent f216a440e1
commit 7f33bb9317
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1092,7 +1092,9 @@ export default defineComponent({
return result;
},
vehicleOptions(): VehicleOption[] {
return this.vehicles.map((v) => ({ key: v.name, name: v.config?.title || v.name }));
return this.vehicles
.filter((v) => !v.deviceDisable)
.map((v) => ({ key: v.name, name: v.config?.title || v.name }));
},
hems() {
return store.state?.hems;