mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 09:56:36 +00:00
Fix zwave_js config panel manual entry inputs (#8806)
This commit is contained in:
parent
05faa52425
commit
99f66d7c5d
@ -197,7 +197,7 @@ class ZWaveJSNodeConfig extends SubscribeMixin(LitElement) {
|
|||||||
|
|
||||||
// Numeric entries with a min value of 0 and max of 1 are considered boolean
|
// Numeric entries with a min value of 0 and max of 1 are considered boolean
|
||||||
if (
|
if (
|
||||||
(item.configuration_value_type === "range" &&
|
(item.configuration_value_type === "manual_entry" &&
|
||||||
item.metadata.min === 0 &&
|
item.metadata.min === 0 &&
|
||||||
item.metadata.max === 1) ||
|
item.metadata.max === 1) ||
|
||||||
this._isEnumeratedBool(item)
|
this._isEnumeratedBool(item)
|
||||||
@ -217,7 +217,7 @@ class ZWaveJSNodeConfig extends SubscribeMixin(LitElement) {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.configuration_value_type === "range") {
|
if (item.configuration_value_type === "manual_entry") {
|
||||||
return html`${labelAndDescription}
|
return html`${labelAndDescription}
|
||||||
<paper-input
|
<paper-input
|
||||||
type="number"
|
type="number"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user