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

backends/corebluetooth: better error message for unauthorized #1033

Merged
merged 1 commit into from Sep 27, 2022

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented Sep 26, 2022

If Bleak is run in a terminal app on macOS that has the permission for Bluetooth disabled, the CentralManager state will return unauthorized.

Previously, this raised the same error as when Bluetooth is not powered which is misleading. This adds a new error message for the unauthorized case.

Issue: #1016

If Bleak is run in a terminal app on macOS that has the permission for
Bluetooth disabled, the CentralManager state will return unauthorized.

Previously, this raised the same error as when Bluetooth is not powered
which is misleading. This adds a new error message for the unauthorized
case.

Issue: #1016
@dlech dlech merged commit 1e48ddb into develop Sep 27, 2022
@dlech dlech deleted the macos-not-authorized branch September 27, 2022 03:08
@dlech dlech mentioned this pull request Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant