github HiDiHo01/Buienalarm v2025.7.7
Release v2025.7.7

latest releases: v2025.10.18, v2025.9.17, v2025.7.25...
4 months ago

๐Ÿงพ Changelog โ€“ Buienalarm

๐Ÿš€ Highlights

  • โšก Full async integration
    No blocking calls, no setup took >10s warnings โ€” now using aiohttp and async_timeout

  • ๐Ÿงญ Accurate and safe geolocation
    Latitude and longitude inputs are validated and auto-converted from string/float

  • ๐Ÿงผ Modernized codebase
    Includes full docstrings, type hints, lazy % logging, and Home Assistant best practices

  • ๐Ÿง  Smarter error handling
    API responses log truncated body text for easier debugging; all JSON/parsing/network errors are diagnosed precisely

  • ๐Ÿ•’ Timezone-aware timestamps
    Replaced utcnow() with now(timezone.utc) for proper datetime handling

  • ๐Ÿงฑ Better structure with SensorEntityDescription
    Uses a single SENSORS definition for all sensor metadata

  • ๐Ÿ“Š Extended sensor data
    Adds full precipitation data to extra_state_attributes for better dashboard usage


๐Ÿš€ What's Changed

โœ… Modernized Integration

  • Refactored for full asynchronous operation using aiohttp + async_timeout
    โ†’ No more requests or thread executor warnings
  • Supports non-blocking setup โ€” avoids setup took >10 seconds warning

๐Ÿง  Smarter and Safer Code

  • Added validation and conversion for latitude/longitude (handles both str and float)
  • Type hints and consistent exception handling throughout
  • Uses timezone-aware datetimes (now(timezone.utc))

๐Ÿงผ Code Cleanliness and Maintenance

  • Structured using SensorEntityDescription via central SENSORS definition
  • Added full docstrings, snake_case, and lazy %-style logging
  • Improved logging with diagnostic snippets on API errors

๐Ÿ’ก UX Improvements

  • Sensor unique_id includes precise geolocation and description key
  • Includes extra_state_attributes with full precipitation data for UI

  • Update pytest-asyncio requirement from >=0.23.6,<0.30.0 to >=0.23.6,<1.1.0 by @dependabot in #19

Full Changelog: v2025.6.17...v2025.7.7

Don't miss a new Buienalarm release

NewReleases is sending notifications on new releases.