From a45f763fad59ef2bbbe438a657b0e4ee34e1935a Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Mon, 1 Mar 2021 15:50:59 +0100 Subject: [PATCH] fix(ui): allow manual entry on config values with states (#781) --- lib/ZwaveClient.js | 1 + src/components/ValueId.vue | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/lib/ZwaveClient.js b/lib/ZwaveClient.js index 889ec79e3f3..43ed67d2eed 100644 --- a/lib/ZwaveClient.js +++ b/lib/ZwaveClient.js @@ -986,6 +986,7 @@ function updateValueMetadata (zwaveNode, zwaveValue, zwaveValueMeta) { if (zwaveValueMeta.states) { valueId.list = true + valueId.allowManualEntry = zwaveValueMeta.allowManualEntry valueId.states = [] for (const k in zwaveValueMeta.states) { valueId.states.push({ diff --git a/src/components/ValueId.vue b/src/components/ValueId.vue index 1ad6f9f551b..1285d608e2e 100644 --- a/src/components/ValueId.vue +++ b/src/components/ValueId.vue @@ -103,7 +103,7 @@ + + + +
v.value === this.value.newValue) + }, items () { const items = this.value.states || [] const defaultValue = this.value.default