Skip to content

Precision Slopes, Custom Polling, and Cross-Country Revival

Choose a tag to compare

@github-actions github-actions released this 15 Mar 11:16

New Features

  • Customizable Polling Interval [#20]: You can now configure the update interval directly via the integration's Options Flow. This allows you to control how frequently Home Assistant fetches data, which is crucial for preventing IP bans from the Bergfex servers. The default interval remains 30 minutes.
  • Granular Slope Details [#19]: The slope parser has been significantly upgraded. It now extracts detailed information for every open piste, providing the specific name, difficulty (color coding), and length of each slope straight to your sensors.

Bug Fixes

  • Cross-Country Resort Parsing Restored: Bergfex recently overhauled their HTML layout for cross-country (Loipen) trails, which caused the integration to fail. The parser has been completely rewritten to dynamically navigate the new tabular layouts, successfully restoring live kilometer tracking for both classical and skating trails.
  • Forecast Image Stability: Resolved a backend crash in the image platform (NameError regarding the logger) that was preventing snow forecast maps from loading properly on Lovelace dashboards.

Under the Hood & Developer Experience

  • Robust Test Infrastructure: Reorganized the testing framework by introducing a centralized fixtures/ directory. Added comprehensive real-world HTML snapshots—including resorts like Hintertux, Ankogel, Airolo, and Cortina d'Ampezzo—to rigorously enforce parser accuracy across multiple languages and resort types.