From 3d17973987985c36dd9ca1a02f3a535c8499dc9d Mon Sep 17 00:00:00 2001 From: RogerSelwyn Date: Sun, 7 Jul 2024 17:38:39 +0100 Subject: [PATCH] maint: Remove use of internal attribute --- custom_components/o365/todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/o365/todo.py b/custom_components/o365/todo.py index 31ea95a..92e6117 100644 --- a/custom_components/o365/todo.py +++ b/custom_components/o365/todo.py @@ -248,7 +248,7 @@ def _update_extra_state_attributes(self, todos): todo = { ATTR_SUBJECT: item.subject, ATTR_TODO_ID: item.task_id, - ATTR_STATUS: item._Task__status, + ATTR_STATUS: item.status, } if item.body: todo[ATTR_DESCRIPTION] = item.body