stationid require for ui
This commit is contained in:
parent
97189dc789
commit
241f336247
1 changed files with 4 additions and 0 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue