Exception in callback?

I’m getting two errors that keeps repeating but with different “listeners”, 0x7f79b64d08 and 0x7f7a4ff6a8 that looks like this:

Error doing job: Exception in callback <function async_track_state_change.<locals>.state_change_listener at 0x7f7a4ff6a8>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 64, in uvloop.loop.Handle._run
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/event.py", line 82, in state_change_listener
    event.data.get('new_state'))
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 327, in async_run_job
    target(*args)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/event.py", line 103, in template_condition_listener
    template_result = condition.async_template(hass, template, variables)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/condition.py", line 298, in async_template
    value = value_template.async_render(variables)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/template.py", line 137, in async_render
    return self._compiled.render(kwargs).strip()
  File "/usr/local/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
  File "/usr/local/lib/python3.6/site-packages/jinja2/sandbox.py", line 427, in call
    return __context.call(__obj, *args, **kwargs)
TypeError: 'NoneType' object is not callable

Anyone that’s better then me at readin logs and can point me in the right direction what might be doing it?

I don’t know much about the core of Home Assistant, but the error indicates that it has trouble evaluating a template. Possibly one within a condition or related to an event. So I guess there would be an automation that is causing this.