new ui 13
This commit is contained in:
@@ -339,8 +339,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load device state
|
// Load all device states at once
|
||||||
deviceState = await window.apiClient.getDeviceState(deviceId);
|
const allStates = await window.apiClient.getAllStates();
|
||||||
|
deviceState = allStates[deviceId] || {};
|
||||||
|
|
||||||
// Update header
|
// Update header
|
||||||
document.getElementById('device-icon').textContent = deviceIcons[deviceData.type] || '📱';
|
document.getElementById('device-icon').textContent = deviceIcons[deviceData.type] || '📱';
|
||||||
|
|||||||
Reference in New Issue
Block a user