Update general device information
This commit is contained in:
@ -120,6 +120,18 @@ export class DeviceApi {
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current state of a single device
|
||||
*/
|
||||
static async GetSingleState(id: string): Promise<DeviceState> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
uri: `/device/${encodeURIComponent(id)}/state`,
|
||||
method: "GET",
|
||||
})
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a device general information
|
||||
*/
|
||||
|
Reference in New Issue
Block a user