Skip to content

Commit

Permalink
feat: Add task status as a status attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Mar 5, 2024
1 parent b14c414 commit 429d304
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/o365/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ATTR_DUE,
ATTR_OVERDUE_TODOS,
ATTR_REMINDER,
ATTR_STATUS,
ATTR_SUBJECT,
ATTR_TODO_ID,
CONF_ACCOUNT,
Expand Down Expand Up @@ -243,7 +244,11 @@ def _update_extra_state_attributes(self, todos):
all_todos = []
overdue_todos = []
for item in todos:
todo = {ATTR_SUBJECT: item.subject, ATTR_TODO_ID: item.task_id}
todo = {
ATTR_SUBJECT: item.subject,
ATTR_TODO_ID: item.task_id,
ATTR_STATUS: item._Task__status,
}
if item.body:
todo[ATTR_DESCRIPTION] = item.body
if self._show_completed:
Expand Down

0 comments on commit 429d304

Please sign in to comment.