This is driving me crazt it maybe something to do with serial asyncio
I had this working on an android tv box running debian but have switched home assistant to run on a raspberry Pi 4B
I’m getting these errors on startup
2020-10-12 02:12:04 DEBUG (MainThread) [custom_components.currentcost.sensor] devices: [0, 2]
2020-10-12 02:12:09 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/components/template/template_entity.py”, line 261, in _async_template_startup
result_info = async_track_template_result(
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/event.py”, line 933, in async_track_template_result
tracker.async_setup(raise_on_template_error)
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/event.py”, line 740, in async_setup
self._info[template] = template.async_render_to_info(variables)
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/template.py”, line 401, in async_render_to_info
render_info._result = self.async_render(variables, **kwargs)
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/template.py”, line 332, in async_render
return compiled.render(kwargs).strip()
File “/home/john/homeassistant/lib/python3.8/site-packages/jinja2/environment.py”, line 1090, in render
self.environment.handle_exception()
File “/home/john/homeassistant/lib/python3.8/site-packages/jinja2/environment.py”, line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File “/home/john/homeassistant/lib/python3.8/site-packages/jinja2/_compat.py”, line 28, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
TypeError: ‘NoneType’ object is not subscriptable
2020-10-12 02:12:09 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/components/template/template_entity.py”, line 261, in _async_template_startup
result_info = async_track_template_result(
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/event.py”, line 933, in async_track_template_result
tracker.async_setup(raise_on_template_error)
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/event.py”, line 740, in async_setup
self._info[template] = template.async_render_to_info(variables)
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/template.py”, line 401, in async_render_to_info
render_info._result = self.async_render(variables, **kwargs)
File “/home/john/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/template.py”, line 332, in async_render
return compiled.render(kwargs).strip()
File “/home/john/homeassistant/lib/python3.8/site-packages/jinja2/environment.py”, line 1090, in render
self.environment.handle_exception()
File “/home/john/homeassistant/lib/python3.8/site-packages/jinja2/environment.py”, line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File “/home/john/homeassistant/lib/python3.8/site-packages/jinja2/_compat.py”, line 28, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
TypeError: ‘NoneType’ object is not subscriptable
I honestly have no idea why this no longer works
can you help please?