Skip to content

Commit

Permalink
reformat bleak _get_scanner to pass mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ttu committed Jul 27, 2024
1 parent 1696212 commit 2409d0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ruuvitag_sensor/adapters/bleak_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def _get_scanner(detection_callback: AdvertisementDataCallback, bt_device: str =

if bt_device:
return BleakScanner(
detection_callback=detection_callback, scanning_mode=scanning_mode, adapter=bt_device
) # type: ignore[arg-type]
detection_callback=detection_callback,
scanning_mode=scanning_mode, # type: ignore[arg-type]
adapter=bt_device,
)

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

Expand Down

0 comments on commit 2409d0e

Please sign in to comment.