mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-18 00:53:56 +02:00
Cleanup examples
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# ruff: noqa: T201, D103
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
@@ -6,7 +7,7 @@ from findmy.scanner import OfflineFindingScanner
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
|
||||
async def scan():
|
||||
async def scan() -> None:
|
||||
scanner = await OfflineFindingScanner.create()
|
||||
|
||||
print("Scanning for FindMy-devices...")
|
||||
@@ -18,7 +19,7 @@ async def scan():
|
||||
print(f" Lookup key: {device.hashed_adv_key_b64}")
|
||||
print(f" Status byte: {device.status:x}")
|
||||
print(f" Hint byte: {device.hint:x}")
|
||||
print(f" Extra data:")
|
||||
print(" Extra data:")
|
||||
for k, v in sorted(device.additional_data.items()):
|
||||
print(f" {k:20}: {v}")
|
||||
print()
|
||||
|
||||
Reference in New Issue
Block a user