mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-22 16:55:37 +02:00
reports: Allow passing FindMyAccessory directly into BaseAppleAccount.fetch_reports
This commit is contained in:
@@ -27,8 +27,9 @@ async def fetch_reports(lookup_key: KeyPair) -> None:
|
||||
print(f"Logged in as: {acc.account_name} ({acc.first_name} {acc.last_name})")
|
||||
|
||||
# It's that simple!
|
||||
reports = await acc.fetch_last_reports([lookup_key])
|
||||
print(reports)
|
||||
reports = await acc.fetch_last_reports(lookup_key)
|
||||
for report in sorted(reports):
|
||||
print(report)
|
||||
|
||||
finally:
|
||||
await acc.close()
|
||||
|
||||
Reference in New Issue
Block a user