hass.tibber_prices/custom_components/tibber_prices/interval_pool
Julian Pawlowski db02f262b6
Some checks are pending
Deploy Docusaurus Documentation (Dual Sites) / Build and Deploy Documentation Sites (push) Waiting to run
Lint / Ruff (push) Waiting to run
Validate / Hassfest validation (push) Waiting to run
Validate / HACS validation (push) Waiting to run
perf(interval_pool): skip redundant API calls when prior fetch covers range
The PRICE_INFO endpoint returns all available intervals (~384) regardless
of the requested range. When fetching multiple missing ranges, subsequent
calls are redundant if the first response already covers them.

After each fetch, track returned timestamps and skip ranges that are
already covered by previously fetched data.

Impact: Reduces redundant Tibber API calls, especially after restarts or
cache invalidation when multiple gaps exist in the interval pool.
2026-04-17 12:00:57 +00:00
..
__init__.py feat(interval-pool): add intelligent interval caching and memory optimization 2025-11-25 20:44:39 +00:00
cache.py fix(services): use injected now in resolve_search_range day offset 2026-04-14 19:33:24 +00:00
fetcher.py perf(interval_pool): skip redundant API calls when prior fetch covers range 2026-04-17 12:00:57 +00:00
garbage_collector.py fix(interval_pool): rebuild index after dead interval cleanup without empty groups 2026-04-17 12:00:37 +00:00
index.py refactor(interval_pool): improve reliability and test coverage 2025-12-23 10:10:35 +00:00
manager.py perf(interval_pool): run GC after touch-only interval updates 2026-04-17 12:00:48 +00:00
routing.py fix(services): use injected now in resolve_search_range day offset 2026-04-14 19:33:24 +00:00
storage.py feat(interval-pool): add intelligent interval caching and memory optimization 2025-11-25 20:44:39 +00:00