Hey all. I am fairly new to Home Assistant, using Hass.io on a Rasberry Pi. I am trying to configure an Automation to do a git pull on a config that passes TravisCi build, but I am having an issue with creating the sensors in HomeAssistant for TravisCI.
The error I am seeing in the logging is copied below:
Log Details (ERROR)
Sat Oct 19 2019 14:03:12 GMT-0400 (Eastern Daylight Time)
travisci: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 448, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/travisci/sensor.py", line 155, in update
repo = self._data.repo(self._repo_name)
File "/usr/local/lib/python3.7/site-packages/travispy/travispy.py", line 269, in repo
return Repo.find_one(self._session, id_or_slug)
File "/usr/local/lib/python3.7/site-packages/travispy/entities/repo.py", line 72, in find_one
result = super(Repo, cls).find_one(session, entity_id, **kwargs)
File "/usr/local/lib/python3.7/site-packages/travispy/entities/_entity.py", line 90, in find_one
contents = get_response_contents(response)
File "/usr/local/lib/python3.7/site-packages/travispy/_helpers.py", line 40, in get_response_contents
raise TravisError(contents)
travispy.errors.TravisError: [404] not found
I have configured the sensor’s API token using the GitHub token as discussed on the docs here. Any help on clarifying this would be greatly appreciated.
I’ve made the repo public, set up the sensor in a few different ways, but no luck. Same 404 error every time…
travisci: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 319, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
self.update # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/travisci/sensor.py", line 154, in update
repo = self._data.repo(self._repo_name)
File "/usr/local/lib/python3.7/site-packages/travispy/travispy.py", line 269, in repo
return Repo.find_one(self._session, id_or_slug)
File "/usr/local/lib/python3.7/site-packages/travispy/entities/repo.py", line 72, in find_one
result = super(Repo, cls).find_one(session, entity_id, **kwargs)
File "/usr/local/lib/python3.7/site-packages/travispy/entities/_entity.py", line 90, in find_one
contents = get_response_contents(response)
File "/usr/local/lib/python3.7/site-packages/travispy/_helpers.py", line 40, in get_response_contents
raise TravisError(contents)
travispy.errors.TravisError: [404] not found