Enable family mode

refresh locations now includes all devices associated with your family,
not just the main account used.
This commit is contained in:
Simon Elliston Ball 2015-01-08 19:03:32 +00:00
parent abf6c0df17
commit de51878a83

View file

@ -35,7 +35,7 @@ class FindMyiPhoneServiceManager(object):
""" """
host = self._service_root.split('//')[1].split(':')[0] host = self._service_root.split('//')[1].split(':')[0]
self.session.headers.update({'host': host}) self.session.headers.update({'host': host})
req = self.session.post(self._fmip_refresh_url, params=self.params) req = self.session.post(self._fmip_refresh_url, params=self.params, data='{"clientContext":{"fmly":true,"shouldLocate":true,"selectedDevice":"all"}}')
self.response = req.json() self.response = req.json()
for device_info in self.response['content']: for device_info in self.response['content']: