117 files

This commit is contained in:
Home Assistant Version Control
2026-08-08 10:38:07 +00:00
parent c31830deeb
commit ca54a47de7
119 changed files with 9737 additions and 623 deletions
@@ -95,6 +95,23 @@
window.__taskmate_is_parent = isTaskmateParent;
/**
* Stable id of a badge entry from the badges sensor.
*
* ChildBadgesSensor publishes earned/available entries keyed `badge_id`, but
* several card templates were written against `b.id` — undefined on those
* entries, so every "is this the badge that was just earned?" test compared
* against the string "undefined" and never matched (#752). Read the id
* through this helper so both spellings work.
*/
function badgeId(badge) {
if (!badge) return "";
const id = badge.badge_id != null ? badge.badge_id : badge.id;
return id != null ? String(id) : "";
}
window.__taskmate_badge_id = badgeId;
/**
* Event-driven update guard for LitElement cards.
*