Hi, yesterday I noticed the following error really hammer my system:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 637, in async_trigger
and not self._cond_func(variables)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 1009, in if_action
if check(hass, variables) is False:
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 179, in wrapper
result = condition(hass, variables)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 787, in template_if
return async_template(hass, value_template, variables)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 767, in async_template
info = value_template.async_render_to_info(variables, parse_result=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 686, in async_render_to_info
assert self.hass and _render_info.get() is None
AssertionError
It seemed to occur several times per second although was not preceeded by anything identifiable to suggest its ultimate cause.
I had upgraded several HACS components yesterday (Atomic CAlendar Revive, MercedesME, Mushroom, SmarthThinq LGE) and upgraded my docker instance from 2024.1.6 to 2024.2.1 (run the docker container on a ubuntu VM).
I turned on “debug” logging which did not identify any additional trigger for the error. The error seemed to persist even in safe mode! At times, I thought it began anytime I played a video on Kodi. I disabled my kodi integration and there was no change. Ultimately, the association I thought I noticed with media playing on Kodi may not have held up as it also just seemed to start after home assistant had been open for several minutes.
When the error started, home assistant would become SUUPPPPER slow.
Since the error was present even in safe mode, I assume this means that HACS had nothing to do with it?
After spending way too long trying to figure this out, I just restored a backup from 2 days ago when I was on 2024.1.6 (and downgraded) and everything appears to be working again.
I have not seen this error mentioned elsewhere on reddit, here, or broadly on google. The one mentioned of something similar appeared to be from a calendar integration I think?
Anyway, would really appreciate any insight, if anyone has any, on what might have caused this and what I can do to prevent it. I understand that my details make it difficult to pin down the error, but any thoughts would be appreciated.
Thanks