v2.0.2 - CI Consolidation & Code Optimization
Highlights
- Consolidated 4 CI workflows into 2 clean files
- Extracted common platform setup pattern
- Removed dead code and reduced duplication
- Added CHANGELOG.md for version history
CI Improvements
| Workflow | Jobs | Purpose |
|---|---|---|
validate.yaml |
HassFest, HACS, Summary | External validation (parallel) |
ci.yaml |
Lint, Test, Type Check, Bronze→Platinum, Summary | Code quality + Quality Scale |
Code Optimization
async_setup_platform_entities()helper reduces duplication across all 4 platforms- Base class
has_entity_nameremoves 11 redundant lines from entity classes - Removed unused coordinator methods (
_async_optimistic_update,_update_local_state) - Removed unused imports (
Awaitable,Callable,TypeVar)
Quality
- All 161 tests pass
- Full Platinum Quality Scale compliance (54/54 rules)
- Test coverage: 92%+
Installation
HACS (Recommended)
- Open HACS → Integrations
- Search for "Thermacell LIV"
- Install and restart Home Assistant
Manual
Download thermacell_liv.zip and extract to custom_components/thermacell_liv/
Full Changelog: v2.0.1...v2.0.2