print line cleanup 3a
This commit is contained in:
1 parent
55f30af700
commit
d5a2f459e3
2 files changed
+3
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user