Home-Assistant-custom-components-Custom-Templates icon indicating copy to clipboard operation
Home-Assistant-custom-components-Custom-Templates copied to clipboard

Integration not loading on 2025.10.0: AttributeError: 'function' object has no attribute 'is_safe_callable'

Open PeterPalenik opened this issue 2 months ago • 3 comments

The integration stopped working after upgrade to HA 2025.10.0. This is the error:

Error during setup of component custom_templates: 'function' object has no attribute 'is_safe_callable'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 425, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/custom_templates/__init__.py", line 96, in setup
    TemplateEnvironment.ct_original_is_safe_callable = TemplateEnvironment.is_safe_callable
                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'is_safe_callable'

Looks like there's been a refactor of templates in HA Core that might have caused it.

PeterPalenik avatar Oct 02 '25 07:10 PeterPalenik

Huh, that's interesting, because I also have 2025.10.0 installed and it works fine... Can you check if you have the latest version installed?

PiotrMachowski avatar Oct 02 '25 09:10 PiotrMachowski

Had the latest version. Tried reinstalling the latest one again but did not help. Still the same error message.

PeterPalenik avatar Oct 05 '25 07:10 PeterPalenik

What other custom integrations do you use?

PiotrMachowski avatar Oct 05 '25 12:10 PiotrMachowski