hass.tibber_prices/custom_components/tibber_prices/sensor/calculators
Julian Pawlowski 2d0febdab3 fix(binary_sensor): remove 6-hour lookahead limit for period icons
Simplified _has_future_periods() to check for ANY future periods instead
of limiting to 6-hour window. This ensures icons show 'waiting' state
whenever periods are scheduled, not just within artificial time limit.

Also added pragmatic fallback in timing calculator _find_next_period():
when skip_current=True but only one future period exists, return it
anyway instead of showing 'unknown'. This prevents timing sensors from
showing unknown during active periods.

Changes:
- binary_sensor/definitions.py: Removed PERIOD_LOOKAHEAD_HOURS constant
- binary_sensor/core.py: Simplified _has_future_periods() logic
- sensor/calculators/timing.py: Added pragmatic fallback for single period

Impact: Better user experience - icons always show future periods, timing
sensors show values even during edge cases.
2025-11-22 13:04:17 +00:00
..
__init__.py feat(sensor): add data lifecycle diagnostic sensor with push updates 2025-11-20 15:12:41 +00:00
base.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
daily_stat.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
interval.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
lifecycle.py refactor(coordinator): remove redundant lifecycle callback system 2025-11-22 13:01:17 +00:00
metadata.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
rolling_hour.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
timing.py fix(binary_sensor): remove 6-hour lookahead limit for period icons 2025-11-22 13:04:17 +00:00
trend.py fix(calculations): handle negative electricity prices correctly 2025-11-22 04:45:23 +00:00
volatility.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
window_24h.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00