From a0e85a0ed45d487fb3aff540b2c88e55006cac43 Mon Sep 17 00:00:00 2001 From: "Mike A." Date: Thu, 10 Jul 2025 16:41:09 +0200 Subject: [PATCH] fix(examples): fix plist loading error --- examples/real_airtag.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/real_airtag.py b/examples/real_airtag.py index 5eeb858..a1240c5 100644 --- a/examples/real_airtag.py +++ b/examples/real_airtag.py @@ -6,7 +6,6 @@ from __future__ import annotations import logging import sys -from pathlib import Path from _login import get_account_sync @@ -21,8 +20,7 @@ logging.basicConfig(level=logging.INFO) def main(plist_path: str) -> int: # Step 0: create an accessory key generator - with Path(plist_path).open("rb") as f: - airtag = FindMyAccessory.from_plist(f) + airtag = FindMyAccessory.from_plist(plist_path) # Step 1: log into an Apple account print("Logging into account")