pyicloud
pyicloud copied to clipboard
FindMyiPhone : reduce battery usage
trafficstars
Breaking changes
FindMyiPhoneServiceManager-->FindMyiPhoneService- find my iPhone devices fetch is now manual --> you have to call
FindMyiPhoneService.refresh_client()to update devices - find my iPhone devices does not include family devices by default, you have to
with_family=Falseat yourPyiCloudServiceinit. FindMyiPhoneServicewill return the service, not devicesAppleDevice.statusfunction is renamed byattrs
Changes
- we do not fetch every time we get a device
statusorlocation
Not changes
PyiCloudService.deviceswill keep to same behavior ⚠️ WILL DO I/O and request all your devicesPyiCloudService.iphonewill keep to same behavior ⚠️ WILL DO I/O and request all your devices
Additions
- get the Find my iPhone service with
PyiCloudService.find_my_iphone, no devices will be fetched - you can set the
with_familyboolean param toTrueto thePyiCloudServiceto get your family devices fetches. - do
find_my_iphone_service.refresh_client()to fetch and update devices - Apple device attrs are available as properties
Also update read_me