I’m getting the following error after reboot but, USPS package info is displayed in the front end.
2017-06-08 00:17:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/myusps/init.py”, line 176, in wrapped
return function(*args)
File “/srv/homeassistant/lib/python3.4/site-packages/myusps/init.py”, line 229, in get_mail
container = _require_elem(response, INFORMED_DELIVERY_TAG, INFORMED_DELIVERY_ATTRS)
File “/srv/homeassistant/lib/python3.4/site-packages/myusps/init.py”, line 86, in _require_elem
raise USPSError(‘Not logged in’)
myusps.USPSError: Not logged in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 233, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 361, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 191, in async_add_entity
yield from self.hass.loop.run_in_executor(None, entity.update)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/usps.py”, line 124, in update
self._state = len(myusps.get_mail(self._session))
File “/srv/homeassistant/lib/python3.4/site-packages/myusps/init.py”, line 179, in wrapped
_login(args[0])
File “/srv/homeassistant/lib/python3.4/site-packages/myusps/init.py”, line 156, in _login
raise USPSError(‘authentication failed’)
myusps.USPSError: authentication failed