mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
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. |
||
|---|---|---|
| .. | ||
| tibber_prices | ||