stationid require for ui

This commit is contained in:
Michael Geers 2025-08-03 12:42:10 +02:00
parent 97189dc789
commit 241f336247

View file

@ -241,6 +241,10 @@ export default defineComponent({
},
templateParams() {
const params = this.template?.Params || [];
// HACK: soft-require stationid. Can be removed once https://github.com/evcc-io/evcc/pull/22115 is merged
params.forEach((p) => {
if (p.Name === "stationid") p.Required = true;
});
return params.filter(
(p) =>
!CUSTOM_FIELDS.includes(p.Name) &&