device state setting fix 3

This commit is contained in:
2025-11-19 10:20:46 +01:00
parent 381f8521d4
commit 99580f8ff9
2 changed files with 6 additions and 3 deletions

View File

@@ -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