mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Fix TSCM Bluetooth scanner function signature mismatch
The unified get_tscm_bluetooth_snapshot() no longer accepts a bt_interface parameter as it handles interface selection internally. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1331,7 +1331,7 @@ def _run_sweep(
|
||||
try:
|
||||
# Use unified Bluetooth scanner if available
|
||||
if _USE_UNIFIED_BT_SCANNER:
|
||||
bt_devices = get_tscm_bluetooth_snapshot(bt_interface, duration=8)
|
||||
bt_devices = get_tscm_bluetooth_snapshot(duration=8)
|
||||
else:
|
||||
bt_devices = _scan_bluetooth_devices(bt_interface, duration=8)
|
||||
for device in bt_devices:
|
||||
|
||||
@@ -346,7 +346,7 @@ class TestTSCMIntegration:
|
||||
mock_scanner.get_devices.return_value = [sample_device]
|
||||
|
||||
with patch('routes.bluetooth_v2.get_bluetooth_scanner', return_value=mock_scanner):
|
||||
devices = get_tscm_bluetooth_snapshot('hci0', duration=8)
|
||||
devices = get_tscm_bluetooth_snapshot(duration=8)
|
||||
|
||||
assert len(devices) == 1
|
||||
device = devices[0]
|
||||
@@ -361,7 +361,7 @@ class TestTSCMIntegration:
|
||||
mock_scanner.get_devices.return_value = []
|
||||
|
||||
with patch('routes.bluetooth_v2.get_bluetooth_scanner', return_value=mock_scanner):
|
||||
devices = get_tscm_bluetooth_snapshot('hci0')
|
||||
devices = get_tscm_bluetooth_snapshot()
|
||||
|
||||
assert devices == []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user