brianjking / homeassistant-config

Configuration for @brianjking Home Assistant
https://home-assistant.io
83 stars 8 forks source link

UPS Sensor Broken #111

Closed brianjking closed 7 years ago

brianjking commented 7 years ago
2017-06-21 16:47:40 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform ups
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/upsmychoice/__init__.py", line 90, in wrapped
    return function(*args)
  File "/home/homeassistant/.homeassistant/deps/upsmychoice/__init__.py", line 105, in get_packages
    raise UPSError('failed to find token or tid')
upsmychoice.UPSError: failed to find token or tid

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 161, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
    return fut.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/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/ups.py", line 55, in setup_platform
    config.get(CONF_UPDATE_INTERVAL))])
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/ups.py", line 68, in __init__
    self.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/ups.py", line 84, in _update
    for package in upsmychoice.get_packages(self._session):
  File "/home/homeassistant/.homeassistant/deps/upsmychoice/__init__.py", line 93, in wrapped
    return function(*args)
  File "/home/homeassistant/.homeassistant/deps/upsmychoice/__init__.py", line 105, in get_packages
    raise UPSError('failed to find token or tid')
upsmychoice.UPSError: failed to find token or tid