Advertisement
Guest User

Untitled

a guest
Oct 4th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. 2020-10-04 23:45:36 ERROR (MainThread) [homeassistant.components.sensor] command_line: Error on device update!
  2. Traceback (most recent call last):
  3. File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
  4. await entity.async_device_update(warning=False)
  5. File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
  6. await self.hass.async_add_executor_job(self.update) # type: ignore
  7. File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  8. result = self.fn(*self.args, **self.kwargs)
  9. File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 128, in update
  10. self._state = self._value_template.render_with_possible_json_value(
  11. File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 323, in render_with_possible_json_value
  12. return run_callback_threadsafe(
  13. File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 439, in result
  14. return self.__get_result()
  15. File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
  16. raise self._exception
  17. File "/usr/src/homeassistant/homeassistant/util/async_.py", line 53, in run_callback
  18. future.set_result(callback(*args))
  19. File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 355, in async_render_with_possible_json_value
  20. return self._compiled.render(variables).strip()
  21. File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
  22. self.environment.handle_exception()
  23. File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
  24. reraise(*rewrite_traceback_stack(source=source))
  25. File "/usr/local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
  26. raise value.with_traceback(tb)
  27. File "<template>", line 1, in top-level template code
  28. File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 969, in regex_findall_index
  29. return re.findall(find, value, flags)[index]
  30. IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement