Add presence DB schema; fix BLE passive scan mode (bleak #1440)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user