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