Skip to content

Commit

Permalink
Tweak error message
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Nov 17, 2022
1 parent 1ccb274 commit 198a4e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/o365/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 198a4e7

Please sign in to comment.