Skip to content

Commit

Permalink
Add scanner args to scanner with no adapter defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ttu committed Jan 26, 2025
1 parent 30e1e68 commit c589aa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ruuvitag_sensor/adapters/bleak_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def _get_scanner(detection_callback: AdvertisementDataCallback, bt_device: str =
cb=SCANNER_ARGS, # type: ignore[arg-type]
)

return BleakScanner(detection_callback=detection_callback, scanning_mode=scanning_mode) # type: ignore[arg-type]
return BleakScanner(
detection_callback=detection_callback,
scanning_mode=scanning_mode, # type: ignore[arg-type]
cb=SCANNER_ARGS, # type: ignore[arg-type]
)


queue = asyncio.Queue[Tuple[str, str]]()
Expand Down

0 comments on commit c589aa3

Please sign in to comment.