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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user