Skip to content

v2.2.0 — Gold tier: full test coverage

Choose a tag to compare

@nodomain nodomain released this 28 Apr 07:34

Gold Tier 🥇

This release adds full automated test coverage — the key requirement for HA Integration Quality Scale Gold tier.

Added

  • 21 unit tests covering all integration components:
    • Config flow: success, auth error, connection error, duplicate prevention
    • Integration setup and unload lifecycle
    • Weather entity creation and state
    • Sensor entity creation (dew point, precipitation, moon illumination)
    • Astronomy timestamp sensors (sunrise returns valid datetime)
    • Binary sensor creation (rain, frost, daytime)
    • All helper functions (normalization, condition mapping, safeget)
    • Weather symbol validation (all symbols map to valid HA conditions)
  • Pre-commit hooks: ruff lint + format + pytest run on every commit
  • CI test job: pytest runs in GitHub Actions on push/PR

Fixed

  • Ruff import sorting (I001) across all files
  • collections.abc.Callable instead of deprecated typing.Callable
  • datetime.UTC alias instead of timezone.utc
  • CI Node.js 24 deprecation warning

See CHANGELOG.md for full history.