Open-source home automation platform running on Python 3.
69
{
"context": "This criteria evaluates how well the engineer leverages Home Assistant's Label Registry API to implement a label management system. The focus is on proper usage of label creation, entity-label associations, and label-based entity filtering using the Home Assistant framework.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Label Registry Integration",
"description": "Uses Home Assistant's LabelRegistry class (from homeassistant.helpers.label_registry) to manage labels instead of implementing custom storage",
"max_score": 25
},
{
"name": "Label Creation API",
"description": "Uses async_create method from LabelRegistry with proper parameters (name, color, icon) and handles label validation appropriately",
"max_score": 15
},
{
"name": "Label Retrieval",
"description": "Uses async_get_label or appropriate registry methods to retrieve labels by ID and list all labels",
"max_score": 10
},
{
"name": "Label Deletion",
"description": "Uses async_delete_label from LabelRegistry to remove labels properly",
"max_score": 10
},
{
"name": "Entity Registry Integration",
"description": "Uses EntityRegistry (from homeassistant.helpers.entity_registry) to manage entity-label associations via the labels field",
"max_score": 20
},
{
"name": "Entity Label Assignment",
"description": "Uses async_update_entity with labels parameter to assign or modify labels on entities",
"max_score": 10
},
{
"name": "Label-based Filtering",
"description": "Implements entity filtering by iterating through EntityRegistry entries and checking their labels attribute to find entities by label criteria",
"max_score": 10
}
]
}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