Skip to content

Commit

Permalink
feat: re-order Z-Wave settings, prevent setting invalid regions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Nov 5, 2024
1 parent 1107718 commit 1f8c1ec
Show file tree
Hide file tree
Showing 2 changed files with 335 additions and 252 deletions.
5 changes: 5 additions & 0 deletions src/lib/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export const rfRegions = Object.keys(RFRegion)
text: key,
value: RFRegion[key],
}))
.filter(
(region) =>
region.value !== RFRegion.Unknown &&
region.value !== RFRegion['Default (EU)'],
)
.sort((a, b) => a.text.localeCompare(b.text))

export const znifferRegions = Object.keys(ZnifferRegion)
Expand Down
Loading

0 comments on commit 1f8c1ec

Please sign in to comment.