Skip to content

Commit

Permalink
fix: adjust stale comment in freshen_ble_device (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Sep 26, 2022
1 parent 2215b03 commit 6cabc1f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bleak_retry_connector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ def _get_possible_paths(path: str) -> Generator[str, None, None]:
async def freshen_ble_device(device: BLEDevice) -> BLEDevice | None:
"""Freshen the device.
If the device is from BlueZ it may be stale
because bleak does not send callbacks if only
the RSSI changes so we may need to find the
path to the device ourselves.
There may be a better path to the device on another adapter
that was seen after the code that provided the BLEDevice to
the establish_connection function was run.
"""
if (
not IS_LINUX
Expand Down

0 comments on commit 6cabc1f

Please sign in to comment.