mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 14:50:00 -07:00
Fix legacy code conflicts and Bleak deprecation warning
- Add null checks to legacy refreshBtInterfaces() function - Redirect to BluetoothMode.checkCapabilities() when available - Fix Bleak deprecation: use AdvertisementData.connectable instead of device.metadata Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -164,7 +164,7 @@ class BleakScanner:
|
||||
manufacturer_data=manufacturer_data,
|
||||
service_uuids=list(adv_data.service_uuids) if adv_data.service_uuids else [],
|
||||
service_data=service_data,
|
||||
is_connectable=device.metadata.get('connectable', True) if hasattr(device, 'metadata') else True,
|
||||
is_connectable=getattr(adv_data, 'connectable', True) if adv_data else True,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user