new endpoints 5
This commit is contained in:
@@ -195,8 +195,12 @@
|
||||
|
||||
try {
|
||||
// Load layout and devices using API client
|
||||
// NEW: Use device layout endpoint for each device
|
||||
// Fallback: load all rooms as before
|
||||
const layoutData = await window.apiClient.getLayout();
|
||||
const devicesData = await window.apiClient.getDevices();
|
||||
// Example: For each device, you could also fetch layout info via
|
||||
// await window.apiClient.fetch(window.apiClient.api(`/devices/${device_id}/layout`));
|
||||
|
||||
// Create device lookup
|
||||
const deviceMap = {};
|
||||
|
||||
Reference in New Issue
Block a user