Device¶
pyfamilysafety.device.Device ¶
Device()
A device registered to a family member.
Attributes:
| Name | Type | Description |
|---|---|---|
device_id |
Unique identifier ( |
|
device_name |
Friendly display name. |
|
device_class |
Device class from the API. |
|
device_make |
Hardware manufacturer. |
|
device_model |
Hardware model name. |
|
form_factor |
Form factor string (phone, console, etc.). |
|
os_name |
Operating system name. |
|
today_time_used |
Screen time today in milliseconds, if reported. |
|
issues |
Raw issue list from the API. |
|
states |
Raw state list from the API. |
|
last_seen |
Last-seen timestamp from the API. |
|
blocked |
Whether the device is blocked via a platform override. |
Init a device.
Source code in pyfamilysafety/device.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
read_screentime_report ¶
read_screentime_report(screentime_report)
Processes a screentime report.
Source code in pyfamilysafety/device.py
36 37 38 39 40 41 | |
update_blocked_status ¶
update_blocked_status(state)
Updates the blocked status.
Source code in pyfamilysafety/device.py
43 44 45 | |
from_dict
classmethod
¶
from_dict(raw_response, screentime_report)
Parse a raw response from 'get_user_devices' into a list.
Source code in pyfamilysafety/device.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |