diff --git a/custom_components/o365/todo.py b/custom_components/o365/todo.py index 4d9389a..e146652 100644 --- a/custom_components/o365/todo.py +++ b/custom_components/o365/todo.py @@ -20,6 +20,7 @@ ATTR_DUE, ATTR_OVERDUE_TODOS, ATTR_REMINDER, + ATTR_STATUS, ATTR_SUBJECT, ATTR_TODO_ID, CONF_ACCOUNT, @@ -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: