Fix 2FA error

This commit is contained in:
Lucas Verney 2025-04-07 21:24:57 +02:00
parent aeddc38396
commit e02f935b49
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1 +1 @@
pyicloud
git+https://github.com/timlaing/pyicloud