Skip to content

Commit

Permalink
feat(ui): re-order Z-Wave settings, prevent setting invalid regions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Nov 6, 2024
1 parent 1107718 commit cf7142e
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 cf7142e

Please sign in to comment.