Open-source home automation platform running on Python 3.
69
{
"context": "This evaluation assesses how effectively an engineer uses Home Assistant's Template System with Jinja2 integration to create, render, and validate dynamic templates. The focus is on proper usage of the Template class and related helper functions from homeassistant.helpers.template.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Template Object Creation",
"description": "Uses the Template class constructor from homeassistant.helpers.template to create template instances, passing both the template string and HomeAssistant instance.",
"max_score": 15
},
{
"name": "Synchronous Rendering",
"description": "Uses the Template.render() method to render templates synchronously with variables passed as a dictionary.",
"max_score": 15
},
{
"name": "Asynchronous Rendering",
"description": "Uses the Template.async_render() method for asynchronous template rendering with proper async/await syntax.",
"max_score": 15
},
{
"name": "Template Validation",
"description": "Uses the Template.ensure_valid() method to validate template syntax and handles TemplateError exceptions appropriately.",
"max_score": 15
},
{
"name": "Static Template Detection",
"description": "Uses the Template.is_static property to check whether a template contains dynamic expressions or is purely static text.",
"max_score": 10
},
{
"name": "Complex Template Rendering",
"description": "Uses the render_complex() function from homeassistant.helpers.template to render nested data structures containing template strings.",
"max_score": 15
},
{
"name": "Variable Passing",
"description": "Correctly passes variables to template rendering methods using dictionary structures and demonstrates understanding of template variable scope.",
"max_score": 10
},
{
"name": "Import Statements",
"description": "Uses correct imports from homeassistant.helpers.template (Template class, render_complex function) and homeassistant.core (HomeAssistant).",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-homeassistantdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10