Can delete a device relay from UI
This commit is contained in:
@ -39,4 +39,14 @@ export class RelayApi {
|
||||
jsonData: relay,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a relay configuration
|
||||
*/
|
||||
static async Delete(relay: DeviceRelay): Promise<void> {
|
||||
await APIClient.exec({
|
||||
method: "DELETE",
|
||||
uri: `/relay/${relay.id}`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user