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