Add presence DB schema; fix BLE passive scan mode (bleak #1440)

This commit is contained in:
Cobra
2026-04-10 14:21:50 -04:00
parent 982e0c526c
commit 0994385f7c
2 changed files with 40 additions and 2 deletions
+2 -2
View File
@@ -274,8 +274,8 @@ async def scan_loop():
await on_arrival(name, mac, rssi)
# Active scanner — explicitly required; bleak 0.20 BlueZ backend defaults to passive
async with BleakScanner(detection_callback=detection_callback, scanning_mode="active") as scanner:
# Passive scanner — required to avoid corrupting BLE 0x004C manufacturer_data (bleak #1440)
async with BleakScanner(detection_callback=detection_callback, scanning_mode="passive") as scanner:
try:
while not shutdown_event.is_set():
await asyncio.sleep(1)