mirror of
https://github.com/fmtr/haco.git
synced 2026-11-26 18:06:26 -05:00
Add changelog to doc structure
This commit is contained in:
parent
5e676d8bb7
commit
430d923464
2 changed files with 4 additions and 7 deletions
|
|
@ -1,6 +0,0 @@
|
|||
- Refactored core models from `dataclass` to Pydantic across active entities (`Base`, `Device`, `Control`, `Capability`, topic models, and concrete control types like `Switch`, `Climate`, `Sensor`, etc.).
|
||||
- Replaced dataclass-specific field metadata (`metadata=dict(exclude=True)`, `field(...)`, `__post_init__`) with native Pydantic patterns (`Field(...)`, `model_post_init`, class inheritance from `corio.dm.Base`).
|
||||
- Updated parent/back-reference handling to follow the parent-typing pattern, including explicit in-`__init__` imports for forward references (e.g. `Device.parent: ClientHaco | None`).
|
||||
- Reworked `Base.model_dump()` to preserve discovery behavior by merging class `DATA`, defaulting to `exclude_none=True`, and excluding runtime extra attributes so dynamic callbacks do not leak into HA announce payloads.
|
||||
- Cleaned up dataclass leftovers by removing the unused `Metadata` helper from `haco/utils.py` and simplifying related imports.
|
||||
- Added packaging metadata and testing support updates: `pyproject.toml` project metadata/uv source config, `setup.py` test extras (`pytest`, `pytest-cov`), and initial `haco/tests` package scaffolding.
|
||||
|
|
@ -20,10 +20,13 @@
|
|||
},
|
||||
{
|
||||
"Control Types": "controls.md"
|
||||
},
|
||||
{
|
||||
"Changelog": "changelog/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"setup": {},
|
||||
"is_pypi": true,
|
||||
"is_dockerhub": false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue