hass.tibber_prices/custom_components/tibber_prices/sensor/calculators
Julian Pawlowski 1d065b11cd fix(services): use injected now in resolve_search_range day offset
_resolve_time_with_day_offset() was calling dt_util.now() internally
instead of using the injected now parameter. This caused incorrect date
calculations in tests and any caller that passes a specific reference time.

Also add missing price_rank_* sensor keys to TIME_SENSITIVE_ENTITY_KEYS
in coordinator/constants.py so quarter-hour refresh is registered for all
11 price rank sensors (current/next/previous interval and hour variants).

Rename dt as dt_utils → dt as dt_util (ICN001) across 11 files to follow
the project-wide import alias convention. Apply ruff auto-fixes for import
ordering and collapsing single-item imports throughout the codebase.

Released-Bug: no
2026-04-14 19:33:24 +00:00
..
__init__.py feat(sensor): add data lifecycle diagnostic sensor with push updates 2025-11-20 15:12:41 +00:00
base.py fix(services): use injected now in resolve_search_range day offset 2026-04-14 19:33:24 +00:00
daily_stat.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00
interval.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00
lifecycle.py fix(sensor): streamline lifecycle attrs and next poll visibility 2025-12-26 12:13:36 +00:00
metadata.py feat(sensors): add day pattern detection sensors (valley/peak/flat/rising/falling) 2026-04-11 21:07:16 +00:00
rolling_hour.py refactor(sensor): replace redundant pass-through lambdas with direct references 2026-04-06 14:28:51 +00:00
timing.py fix(docs): correct inaccuracies and add missing documentation 2026-04-11 11:51:52 +00:00
trend.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00
volatility.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00
window_24h.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00