Fix 2FA error
This commit is contained in:
parent
aeddc38396
commit
e02f935b49
@ -76,10 +76,10 @@ def get_icloud_location(config):
|
|||||||
|
|
||||||
iphone = next(
|
iphone = next(
|
||||||
device
|
device
|
||||||
for device in api.devices
|
for device in api.devices.values()
|
||||||
if config['apple']['iPhone_name'] in device.status()['name']
|
if config['apple']['iPhone_name'] in device.status()['name']
|
||||||
)
|
)
|
||||||
iphone_location = iphone.location()
|
iphone_location = iphone.location
|
||||||
iphone_status = iphone.status()
|
iphone_status = iphone.status()
|
||||||
|
|
||||||
return iphone_location, iphone_status
|
return iphone_location, iphone_status
|
||||||
|
@ -1 +1 @@
|
|||||||
pyicloud
|
git+https://github.com/timlaing/pyicloud
|
||||||
|
Loading…
x
Reference in New Issue
Block a user