Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fallback to Europe when setting region to default #7368

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/zwave-js/src/lib/controller/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6525,6 +6525,10 @@ export class ZWaveController

/** Configure the RF region at the Z-Wave API Module */
public async setRFRegion(region: RFRegion): Promise<boolean> {
// Setting the "default" region is not possible. Controllers are supposed to
// default to the EU region, so we do just that.
if (region === RFRegion["Default (EU)"]) region = RFRegion.Europe;

// Unless auto-upgrade to LR regions is disabled, try to find a suitable LR replacement region
if (this.driver.options.rf?.preferLRRegion !== false) {
region = this.tryGetLRCapableRegion(region);
Expand Down
Loading