@@ -1163,12 +1163,15 @@ function updateSensorSections(sections) {
const entries = Object.entries(rows || {}).filter(([, value]) => normalizeDisplayValue(value));
if (!entries.length) return;
- activeSectionIds.add(sectionKey);
- const section = ensureSensorSection(sectionKey);
+ const isBatterySection = sectionKey === 'battery';
+ const section = isBatterySection ? document.getElementById('batterySection') : ensureSensorSection(sectionKey);
if (!section) return;
- const title = document.getElementById(`sensorTitleText_${sectionKey}`);
- if (title) title.textContent = t[sectionKey] || sectionKey;
+ if (!isBatterySection) {
+ activeSectionIds.add(sectionKey);
+ const title = document.getElementById(`sensorTitleText_${sectionKey}`);
+ if (title) title.textContent = t[sectionKey] || sectionKey;
+ }
entries.forEach(([key, value]) => {
activeRowIds.add(`sensor_${sectionKey}_${key}`);