Skip to content

Commit c6a9def

Browse files
Add labels field to EntityRegistryEntry (#246)
See https://github.com/home-assistant/core/blob/902159387848e70ff93a0b99a09e3768c21bb1d3/homeassistant/helpers/entity_registry.py#L219 for the HomeAssistant model Co-authored-by: Jan Kuechler <jan.kuechler@cern.ch>
1 parent 47c7393 commit c6a9def

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎homeassistant_api/models/entity_registry.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class EntityRegistryEntry(BaseModel):
5151
hidden_by: EntityHiddenBy | None = None
5252
icon: str | None = None
5353
id: str
54+
labels: set[str] = Field(default_factory=set)
5455
modified_at: DatetimeIsoField
5556
name: str | None = None
5657
options: dict[str, Any] = Field(default_factory=dict)

0 commit comments

Comments
 (0)