Skip to content

v2.0.2 - CI Consolidation & Code Optimization

Choose a tag to compare

@btli btli released this 27 Nov 20:27
77773d6

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_name removes 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)

  1. Open HACS → Integrations
  2. Search for "Thermacell LIV"
  3. 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