From d5a2f459e3fa1ce3786199fe9096cd8f335ba9b1 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 13 Oct 2026 04:29:33 -0700 Subject: [PATCH] print line cleanup 3a --- ble.py | 4 ++-- scanner.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ble.py b/ble.py index 55de2da..969d2ed 100644 --- a/ble.py +++ b/ble.py @@ -26,7 +26,7 @@ async def read_data(mac_address): device = next((d for d in devices if d.address.lower() == mac_address.lower()), None) if device: # print(f"BleakScanner device variable loaded - {device.name}") - print(f"-- Found device: {device.name} ({device.address})") + print(f".. Found device: {device.name} ({device.address})") fail_count = 0 # else: # print("BleakScanner device not loaded yet") @@ -43,7 +43,7 @@ async def read_data(mac_address): success = False # Check if Mi service is available - print("-- Waiting on client to connect...") + print(".. Waiting on client to connect...") while not client.is_connected: await asyncio.sleep(0.1) while not success: diff --git a/scanner.py b/scanner.py index 5576216..258c306 100644 --- a/scanner.py +++ b/scanner.py @@ -96,6 +96,7 @@ def update_cache() -> None: """ # Run the async scan in a fresh loop; Bleak requires this. # Gets the MACs + print("") print("--- Starting update_cache loop ---") new_macs = scan_macs() # now that we have MACs, let's get sensor data