Skip to content

Commit

Permalink
Fix zwave node config toggle switch (#22443)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Oct 20, 2024
1 parent 5415690 commit 338692d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class ZWaveJSNodeConfig extends LitElement {
.propertyKey=${item.property_key}
.value=${item.value === 1}
.key=${id}
@change=${this._switchToggled}
@value-changed=${this._switchToggled}
.disabled=${!item.metadata.writeable}
.helper=${defaultLabel}
></ha-selector-boolean>
Expand Down Expand Up @@ -354,7 +354,7 @@ class ZWaveJSNodeConfig extends LitElement {

private _switchToggled(ev) {
this.setResult(ev.target.key, undefined);
this._updateConfigParameter(ev.target, ev.target.checked ? 1 : 0);
this._updateConfigParameter(ev.target, ev.detail.value ? 1 : 0);
}

private _dropdownSelected(ev) {
Expand Down

0 comments on commit 338692d

Please sign in to comment.