We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e4527d commit 22085a6Copy full SHA for 22085a6
examples/scanner.py
@@ -8,9 +8,7 @@
8
from findmy import (
9
FindMyAccessory,
10
KeyPair,
11
- NearbyOfflineFindingDevice,
12
OfflineFindingScanner,
13
- SeparatedOfflineFindingDevice,
14
)
15
16
logging.basicConfig(level=logging.INFO)
@@ -30,13 +28,6 @@ async def scan(check_key: KeyPair | FindMyAccessory | None = None) -> bool:
30
28
scan_out_file.unlink()
31
29
32
async for device in scanner.scan_for(10, extend_timeout=True, print_summary=True):
33
- if isinstance(device, (SeparatedOfflineFindingDevice, NearbyOfflineFindingDevice)):
34
- device.print_device(out_file=scan_out_file)
35
- else:
36
- print(f"Unknown device: {device}")
37
- print()
38
- continue
39
-
40
if check_key and device.is_from(check_key):
41
scan_device = device
42
0 commit comments