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

updated logging to lazy version and replaced format by f-string for BleakClientWinRT #1000

Merged

Conversation

jochenjagers
Copy link
Contributor

Hello,

this PR updates the BleakClientWinRT to use f-strings instead of .format function and lazy formatting for logger calls.
It also removes the _pairing_statuses and _unpairing_statuses objects which contained a bit strange subset of the corresponding enums but skipping all values that contain an underscore. Instead of them DevicePairingResultStatus(value).name is used for logging the values.

Copy link
Collaborator

@dlech dlech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! Just one suggestion.

bleak/backends/winrt/client.py Outdated Show resolved Hide resolved
@jochenjagers jochenjagers force-pushed the bugfix/cleanup_logging_of_winrt_client branch from 03570ec to fa6bd43 Compare September 12, 2022 15:19
@jochenjagers jochenjagers force-pushed the bugfix/cleanup_logging_of_winrt_client branch from fa6bd43 to 9a0264e Compare September 12, 2022 15:22
@dlech dlech merged commit d81fd3d into hbldh:develop Sep 12, 2022
@dlech dlech mentioned this pull request Sep 12, 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

2 participants