hass.tibber_prices/custom_components/tibber_prices/utils
Julian Pawlowski 9cb5b35184 fix(periods): separate smoothed levels from period detection
Keep raw Tibber API levels for best/peak period filtering while leaving smoothed levels in priceInfo for display-oriented sensors. Also make relaxation retry each flex step with the configured level filter before falling back to level_filter="any", and add regression tests for both paths.

Impact: Best-price periods no longer extend into expensive intervals because of level smoothing, and adjacent best/peak windows stay separated as expected.
2026-05-03 19:40:34 +00:00
..
__init__.py feat(utils): add coefficient of variation (CV) calculation 2025-12-22 23:21:38 +00:00
average.py feat(sensors): always show both mean and median in average sensor attributes 2025-12-18 15:12:30 +00:00
price.py fix(periods): separate smoothed levels from period detection 2026-05-03 19:40:34 +00:00
price_window.py feat(pricing): add relaxation logic for progressive filter loosening 2026-04-18 21:27:05 +00:00