pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

pyscript template functions not working

Open BAPMU opened this issue 3 weeks ago • 1 comments

after update to 2025.12.0 template functions doesn't work.

What version of Home Assistant Core has the issue? 2025.12.0

What was the last working version of Home Assistant Core? last core before

What type of installation are you running? Home Assistant OS

pyscript function import homeassistant.helpers.template as template def get_home_mainlabel(entity): label=template.labels(hass,entity)

log 2025-12-09 12:34:33.324 ERROR (MainThread) [custom_components.pyscript.file.lodge_cal_mgmt.get_booking] Exception in <file.lodge_cal_mgmt.get_booking> line 8: label=template.labels(hass,entity) ^ AttributeError: module 'homeassistant.helpers.template' has no attribute 'labels'

BAPMU avatar Dec 10 '25 07:12 BAPMU

similar to https://github.com/custom-components/pyscript/issues/783 you are importing the homeassistant code, pyscript has nothing to do with it.

ALERTua avatar Dec 10 '25 07:12 ALERTua