From 198a4e79d802befb096d7c8d95dea35746dfdd27 Mon Sep 17 00:00:00 2001 From: RogerSelwyn Date: Thu, 17 Nov 2022 11:56:05 +0000 Subject: [PATCH] Tweak error message --- custom_components/o365/sensor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/o365/sensor.py b/custom_components/o365/sensor.py index bf2f0f7..aa4d75d 100644 --- a/custom_components/o365/sensor.py +++ b/custom_components/o365/sensor.py @@ -448,7 +448,10 @@ async def async_update(self): self._tasks = list(data) except requests.exceptions.HTTPError: if not self._error: - _LOGGER.error("Task list not found for: %s", self._name) + _LOGGER.error( + "Task list not found for: %s - Has it been deleted? Restart HA to remove sensor.", + self._name, + ) self._error = True def new_task(self, subject, description=None, due=None, reminder=None):