Hey folks,
At some point it appears that my USPS sensor has broken. The configuration hasn’t changed, and really is pretty basic:
- platform: usps
username: !secret usps_username
password: !secret usps_password
I just copied the username/password from the secrets file and used it to authenticate to the MyUSPS site without an issue. However I’m seeing these in the logs:
Traceback (most recent call last):
File "/root/.homeassistant/deps/myusps/__init__.py", line 148, in wrapped
return function(*args)
File "/root/.homeassistant/deps/myusps/__init__.py", line 158, in get_profile
profile = _require_elem(session.get(PROFILE_URL), PROFILE_TAG, PROFILE_ATTRS)
File "/root/.homeassistant/deps/myusps/__init__.py", line 74, 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/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
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 "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/usps.py", line 54, in setup_platform
config.get(CONF_UPDATE_INTERVAL))])
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/usps.py", line 65, in __init__
self._profile = myusps.get_profile(session)
File "/root/.homeassistant/deps/myusps/__init__.py", line 151, in wrapped
return function(*args)
File "/root/.homeassistant/deps/myusps/__init__.py", line 161, in get_profile
data[row[0].text.strip().lower().replace(' ', '_')] = row[1].text.strip()
IndexError: string index out of range
17-04-25 09:16:18 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/aiohttp/web_protocol.py", line 430, in start
yield from resp.write_eof()
File "/usr/local/lib/python3.4/dist-packages/aiohttp/web_response.py", line 574, in write_eof
yield from super().write_eof(body)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/web_response.py", line 413, in write_eof
yield from self._payload_writer.write_eof(data)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/http_writer.py", line 281, in write_eof
yield from self.drain(True)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/http_writer.py", line 294, in drain
yield from self._stream.drain()
File "/usr/local/lib/python3.4/dist-packages/aiohttp/http_writer.py", line 127, in drain
yield from self._protocol._drain_helper()
File "/usr/lib/python3.4/asyncio/streams.py", line 197, in _drain_helper
yield from waiter
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
concurrent.futures._base.CancelledError
17-04-25 09:16:19 ERROR (MainThread) [aiohttp.server] Unhandled exception
Any assistance would be appreciated!