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