From 27b81b0bceccd64c356b1cc737b81cb67994e87a Mon Sep 17 00:00:00 2001 From: RogerSelwyn Date: Sun, 18 Dec 2022 17:44:52 +0000 Subject: [PATCH] Fix Todo Entity Names --- custom_components/o365/manifest.json | 2 +- custom_components/o365/sensor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/o365/manifest.json b/custom_components/o365/manifest.json index 5d6a02a..9552ac6 100644 --- a/custom_components/o365/manifest.json +++ b/custom_components/o365/manifest.json @@ -14,6 +14,6 @@ "O365==2.0.24", "BeautifulSoup4>=4.10.0" ], - "version": "v4.0.5", + "version": "v4.0.6", "iot_class": "cloud_polling" } \ No newline at end of file diff --git a/custom_components/o365/sensor.py b/custom_components/o365/sensor.py index d672a0a..295497b 100644 --- a/custom_components/o365/sensor.py +++ b/custom_components/o365/sensor.py @@ -248,7 +248,7 @@ async def _async_todo_entities(self, task_lists, config): entities = [] tasks = self._account.tasks() for task in task_lists: - name = task.get(CONF_NAME) + name = f"{task.get(CONF_NAME)} {self._account_name}" track = task.get(CONF_TRACK) task_list_id = task.get(CONF_TASK_LIST_ID) entity_id = _build_entity_id(self.hass, name, self._config)