new endpoints 5
This commit is contained in:
@@ -6,6 +6,14 @@
|
||||
*/
|
||||
|
||||
class HomeAutomationClient {
|
||||
/**
|
||||
* Get layout info for a specific device
|
||||
* @param {string} deviceId - Device ID
|
||||
* @returns {Promise<object>} Layout info
|
||||
*/
|
||||
async getDeviceLayout(deviceId) {
|
||||
return await this.fetch(this.api(`/devices/${deviceId}/layout`));
|
||||
}
|
||||
constructor() {
|
||||
this.eventSource = null;
|
||||
this.eventListeners = [];
|
||||
|
||||
Reference in New Issue
Block a user