device state setting fix 9
This commit is contained in:
@@ -325,8 +325,11 @@
|
|||||||
// Load device info using API client
|
// Load device info using API client
|
||||||
// NEW: Use new endpoints for device info and layout
|
// NEW: Use new endpoints for device info and layout
|
||||||
const deviceData = await window.apiClient.getDevice(deviceId);
|
const deviceData = await window.apiClient.getDevice(deviceId);
|
||||||
|
console.log("Loaded device data:", deviceData);
|
||||||
deviceState = await window.apiClient.getDeviceState(deviceId);
|
deviceState = await window.apiClient.getDeviceState(deviceId);
|
||||||
|
console.log("Loaded device state:", deviceState);
|
||||||
const layoutInfo = await window.apiClient.getDeviceLayout(deviceId);
|
const layoutInfo = await window.apiClient.getDeviceLayout(deviceId);
|
||||||
|
console.log("Loaded layout info:", layoutInfo);
|
||||||
roomName = layoutInfo.room;
|
roomName = layoutInfo.room;
|
||||||
|
|
||||||
// Update header
|
// Update header
|
||||||
|
|||||||
Reference in New Issue
Block a user