Skip to content

Commit

Permalink
fix(ui): only check for missing keys that are valid LR keys (#3689)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Apr 26, 2024
1 parent 315ab0f commit 1aaf299
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/custom/MissingKeysAlert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default {
'S2_AccessControl',
'S0_Legacy',
],
requiredKeysLongRange: ['S2_Authenticated', 'S2_AccessControl'],
}),
computed: {
...mapState(useBaseStore, ['zwave']),
Expand All @@ -50,7 +51,7 @@ export default {
const keys = this.zwave.securityKeysLongRange || {}
const missing = []
for (const key of this.requiredKeys) {
for (const key of this.requiredKeysLongRange) {
if (!keys[key] || keys[key].length !== 32) {
missing.push(key)
}
Expand Down

0 comments on commit 1aaf299

Please sign in to comment.