Skip to content

Commit 5459bbc

Browse files
authored
Add support for roaming between adapters while establishing the ble connection (#78)
1 parent b567ca6 commit 5459bbc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name="PySwitchbot",
55
packages=["switchbot", "switchbot.devices", "switchbot.adv_parsers"],
6-
install_requires=["async_timeout>=4.0.1", "bleak", "bleak-retry-connector>=1.7.2"],
6+
install_requires=["async_timeout>=4.0.1", "bleak", "bleak-retry-connector>=1.10.0"],
77
version="0.18.10",
88
description="A library to communicate with Switchbot",
99
author="Daniel Hjelseth Hoyer",

switchbot/devices/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ async def _ensure_connected(self):
164164
self.name,
165165
self._disconnected,
166166
cached_services=self._cached_services,
167+
ble_device_callback=lambda: self._device
167168
)
168169
self._cached_services = client.services
169170
_LOGGER.debug("%s: Connected; RSSI: %s", self.name, self.rssi)

0 commit comments

Comments
 (0)