Skip to content

History

HistoryEntry

Bases: BaseModel

A single history entry for an entity.

Source code in src/hassette/models/history.py
 8
 9
10
11
12
13
14
15
16
17
class HistoryEntry(BaseModel):
    """A single history entry for an entity."""

    model_config = {"arbitrary_types_allowed": True}

    entity_id: str
    state: Any
    attributes: dict[str, Any] | None
    last_changed: Instant
    last_updated: Instant