mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-18 06:46:29 +00:00
Datadisk list feature (#1063)
This commit is contained in:
parent
0328ac80a0
commit
ce4c675ed4
@ -1273,9 +1273,13 @@ Get hardware information.
|
|||||||
"dev_path": "/dev/ttyACM0",
|
"dev_path": "/dev/ttyACM0",
|
||||||
"by_id": "/dev/serial/by-id/usb-Silicon_Labs-RFUSB_9017F723B061A7C01410CFCF-if00-port1",
|
"by_id": "/dev/serial/by-id/usb-Silicon_Labs-RFUSB_9017F723B061A7C01410CFCF-if00-port1",
|
||||||
"subsystem": "tty",
|
"subsystem": "tty",
|
||||||
|
"parent": null,
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"MINOR": "5"
|
"MINOR": "5"
|
||||||
}
|
},
|
||||||
|
"children": [
|
||||||
|
"/sys/devices/soc/platform/00ef"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1830,6 +1834,29 @@ Update Home Assistant OS
|
|||||||
|
|
||||||
</ApiEndpoint>
|
</ApiEndpoint>
|
||||||
|
|
||||||
|
<ApiEndpoint path="/os/datadisk/list" method="get">
|
||||||
|
|
||||||
|
Returns possible targets for the new data partition.
|
||||||
|
|
||||||
|
**Returned data:**
|
||||||
|
|
||||||
|
| key | type | description |
|
||||||
|
| ---------------- | ------- | ------------------------------------------------------------ |
|
||||||
|
| devices | list | List with devices paths of possible disk targets |
|
||||||
|
|
||||||
|
**Example response:**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"devices": [
|
||||||
|
"/dev/sda",
|
||||||
|
"/dev/sdb"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</ApiEndpoint>
|
||||||
|
|
||||||
<ApiEndpoint path="/os/datadisk/move" method="post">
|
<ApiEndpoint path="/os/datadisk/move" method="post">
|
||||||
|
|
||||||
Move datadisk to a new location, **This will also reboot the device!**
|
Move datadisk to a new location, **This will also reboot the device!**
|
||||||
|
@ -248,5 +248,7 @@ The `content` key of a backup object contains the following keys:
|
|||||||
| sysfs | string | Path to sysfs device object |
|
| sysfs | string | Path to sysfs device object |
|
||||||
| dev_path | string | Path to devfs |
|
| dev_path | string | Path to devfs |
|
||||||
| subsystem | string or null | Subsystem type of the device (tty, input, sound, block, misc) |
|
| subsystem | string or null | Subsystem type of the device (tty, input, sound, block, misc) |
|
||||||
|
| parent | string or null | Path to the parent sysfs device object |
|
||||||
| by_id | string or null | Udev by ID link |
|
| by_id | string or null | Udev by ID link |
|
||||||
| attributes | dict | A dict with pure udev device attributes for debug and understanding |
|
| attributes | dict | A dict with pure udev device attributes for debug and understanding |
|
||||||
|
| children | list | A list of path to the children sysfs devices |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user