You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make it possible to evaluate templates in pyscript. Preferable with a function call that takes the template as a parameter and return the value from the evaluation.
with from homeassistant.helpers.template import Template you can instantiate Template('{{ states('light.office') == 'off' }}', hass) and .async_render() it and get your result :)
with from homeassistant.helpers.template import Template you can instantiate Template('{{ states('light.office') == 'off' }}', hass) and .async_render() it and get your result :)
This is a feature request
Make it possible to evaluate templates in pyscript. Preferable with a function call that takes the template as a parameter and return the value from the evaluation.
https://community.home-assistant.io/t/pyscript-new-integration-for-easy-and-powerful-python-scripting/215967/304
The text was updated successfully, but these errors were encountered: