Skip to content

Commit

Permalink
fix: initial value of protocol smart start
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jan 23, 2024
1 parent 334d3dd commit 8aa6731
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/SmartStart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@

<template v-slot:[`item.protocol`]="{ item }">
<v-checkbox
:value="item.protocol"
v-if="
item.supportedProtocols?.includes(
Protocols.ZWaveLongRange,
)
"
v-model="item.isLongRange"
@change="toggleProtocol(item)"
hide-details
:disabled="!!item.nodeId"
Expand Down Expand Up @@ -522,6 +527,7 @@ export default {
...item,
status: !item.status,
protocol: item.protocol ?? Protocols.ZWave,
isLongRange: item.protocol === Protocols.ZWaveLongRange,
securityClasses: parseSecurityClasses(
item.securityClasses,
false,
Expand All @@ -544,6 +550,7 @@ export default {
item = {
...item,
isLongRange: undefined,
status: item.status ? 0 : 1,
protocol: item.protocol ?? Protocols.ZWave,
securityClasses: securityClassesToArray(item.securityClasses),
Expand Down

0 comments on commit 8aa6731

Please sign in to comment.