From e02f935b49e3c6d0867e24f258074d5b14e055b1 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 7 Apr 2025 21:24:57 +0200 Subject: [PATCH] Fix 2FA error --- icloud_to_nextcloud.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/icloud_to_nextcloud.py b/icloud_to_nextcloud.py index ac7eb4b..1c444f4 100644 --- a/icloud_to_nextcloud.py +++ b/icloud_to_nextcloud.py @@ -76,10 +76,10 @@ def get_icloud_location(config): iphone = next( device - for device in api.devices + for device in api.devices.values() if config['apple']['iPhone_name'] in device.status()['name'] ) - iphone_location = iphone.location() + iphone_location = iphone.location iphone_status = iphone.status() return iphone_location, iphone_status diff --git a/requirements.txt b/requirements.txt index 6dc5187..4709771 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pyicloud +git+https://github.com/timlaing/pyicloud