github Pirate-Weather/pirate-weather-ha v1.7.4
v1.7.4: Fix ContextVar Warning

latest releases: v1.9.5, v1.9.4, v1.9.3...
15 months ago

Release Notes

This release resolves a ContextVar warning encountered in Home Assistant version 2025.8.0b0 by correctly passing the ConfigEntry to the DataUpdateCoordinator. Additionally, it refactors the handling of the scan interval, improving code clarity and making its retrieval more robust.

Highlights

  • ContextVar Warning Fix: The primary change addresses a ContextVar warning by ensuring the DataUpdateCoordinator is properly initialized with the ConfigEntry object. This is crucial for correct context management in newer Home Assistant versions.
  • Scan Interval Refactoring: The variable pw_scan_Int has been consistently renamed to scan_interval across the integration's files for improved readability and adherence to PEP 8 naming conventions.
  • Robust Scan Interval Retrieval: The logic for retrieving the scan_interval now uses entry.data.get(CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL) to safely access configuration data, providing a default fallback value and preventing potential KeyError exceptions.

What's Changed

  • Bump the non-major-versions group with 2 updates by @dependabot[bot] in #402
  • Bump the non-major-versions group with 2 updates by @dependabot[bot] in #403
  • Bump ruff from 0.11.11 to 0.11.12 in the non-major-versions group by @dependabot[bot] in #404
  • Bump ruff from 0.11.12 to 0.11.13 in the non-major-versions group by @dependabot[bot] in #406
  • Bump softprops/action-gh-release from 2.2.2 to 2.3.2 in the non-major-versions group by @dependabot[bot] in #407
  • Bump stefanzweifel/git-auto-commit-action from 5.2.0 to 6.0.1 by @dependabot[bot] in #408
  • Bump homeassistant from 2025.5.3 to 2025.6.1 in the non-major-versions group by @dependabot[bot] in #409
  • Bump the non-major-versions group across 1 directory with 2 updates by @dependabot[bot] in #412
  • Bump the non-major-versions group with 2 updates by @dependabot[bot] in #415
  • Bump the non-major-versions group with 2 updates by @dependabot[bot] in #416
  • Bump the non-major-versions group with 2 updates by @dependabot[bot] in #417
  • Bump ruff from 0.12.3 to 0.12.4 in the non-major-versions group by @dependabot[bot] in #420
  • Bump the non-major-versions group with 2 updates by @dependabot[bot] in #422
  • Fix ContextVar warning by @cloneofghosts in #425

Full Changelog: v1.7.3...v1.7.4

Don't miss a new pirate-weather-ha release

NewReleases is sending notifications on new releases.