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

Use BLEDevice instead of the bluetooth mac address to connect #2

Merged
merged 2 commits into from
Nov 26, 2023

Conversation

Alexandero89
Copy link
Contributor

The plugin is triggering this HA warning:

homeassistant    | 2023-11-14 12:32:26.701 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hass_nuki_bt' attempted to call BleakClient with an address instead of a BLEDevice at custom_components/hass_nuki_bt/config_flow.py, line 151: ret = await device.pair(), please create a bug report at https://github.com/ronengr/hass_nuki_bt/issues

by using a deprecated way of connecting to Bluetooth devices.

With this PR it is using a BLEDevice class with the available data found inside the NukiDevice class.

Nuki 3.0 is pairing, connecting and working perfectly fine with this PR.
Dont know if anything else will be affected.

@ronengr ronengr merged commit cf3c108 into ronengr:main Nov 26, 2023
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.

2 participants