348 files

This commit is contained in:
Home Assistant Version Control
2026-07-23 19:02:12 +00:00
parent 0ed1687503
commit 016af2e013
348 changed files with 12368 additions and 11689 deletions
+4 -1
View File
@@ -139,7 +139,10 @@ class CompleteChoreButton(TaskMateBaseButton):
def icon(self) -> str:
"""Return the icon."""
chore = self.coordinator.get_chore(self.chore_id)
return getattr(chore, 'icon', "mdi:check-circle") if chore else "mdi:check-circle"
# Chores gained an optional icon in #683, defaulting to "". Fall back on
# falsiness, not on the attribute being absent — otherwise every chore
# without a picture gets a blank button icon.
return (getattr(chore, 'icon', "") or "mdi:check-circle") if chore else "mdi:check-circle"
@property
def extra_state_attributes(self) -> dict: