Dashboard Studio 2.4.2: litter box only shows when the bin is full or something is wrong

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 17:15:20 +01:00
parent db6684b787
commit 0eef8593c8
8 changed files with 34 additions and 9 deletions
+2
View File
@@ -242,6 +242,8 @@
// Media cards from before 1.5 kept one player in cfg.entity; move it into the list so it can be edited.
const fix = (w) => {
if (w.type === "media" && w.cfg.entity) { w.cfg.entities = [...new Set([w.cfg.entity, ...(w.cfg.entities || [])])]; delete w.cfg.entity; }
// Litter boxes from 2.4 always showed; from 2.4.2 they only show when the bin is full or something is wrong.
if (w.type === "appliance" && w.cfg.kind === "litterbox" && w.cfg.onlyAttention == null) w.cfg.onlyAttention = true;
(w.cfg.children || []).forEach(fix);
};
d.tabs.forEach((t) => t.widgets.forEach(fix));