hass.tibber_prices/custom_components/tibber_prices/translations
Julian Pawlowski a8d5230531 feat(periods): implement geometric_extension_attempted flag and time_range filtering
Phase 3: When geometric bonus intervals cause CV gate failure, strip them
from period edges (unextended boundaries) and set geometric_extension_attempted=True
on the summary. Previously only geometric_extension_active was tracked.
Moved LOW_PRICE_QUALITY_BYPASS_THRESHOLD constant to types.py for shared access.

Phase 4: Add time_range: tuple[datetime, datetime] | None parameter to
build_periods(), calculate_periods(), and calculate_periods_with_relaxation().
Filters candidate intervals to [start, end) without affecting day-wide reference
prices. Refactored _apply_segment_forcing() to use time_range instead of the
restricted_prices list approach.

Impact: Period statistics now accurately reflect when geometric flex extension
was attempted but reverted due to quality gate failure. Segment forcing uses
a cleaner API that preserves full price context for reference calculations.
2026-04-12 08:24:38 +00:00
..
de.json feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
en.json feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
nb.json feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
nl.json feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
sv.json feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00