v2.2.0 — Gold tier: full test coverage
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.Callableinstead of deprecatedtyping.Callabledatetime.UTCalias instead oftimezone.utc- CI Node.js 24 deprecation warning
See CHANGELOG.md for full history.