device state setting fix 3
This commit is contained in:
@@ -73,6 +73,10 @@ class HomeAutomationClient {
|
||||
return await this.fetch(this.api('/devices'));
|
||||
}
|
||||
|
||||
async getDevice() {
|
||||
return await this.fetch(this.api(`/devices/${deviceId}`));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current state of a specific device
|
||||
* @param {string} deviceId - Device ID
|
||||
|
||||
Reference in New Issue
Block a user