mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-07-27 17:26:48 +00:00
Some markets/accounts (e.g. NL hourly) return an empty priceInfo(QUARTER_HOURLY).today while priceInfoRange still delivers the full set of intervals. _check_price_info_empty required today's data and wrongly classified such complete responses as empty, which blocked setup. It now treats a response as valid when today OR yesterday data is present, since priceInfoRange is the authoritative source the interval pool uses. Additionally, "Empty data received" is now retried a few times with exponential backoff, smoothing brief Tibber outages that transiently return empty data within a single update cycle. Long outages are still absorbed by the IntervalPool cache fallback, so the in-request retry count stays small. Reported in #141. Impact: Setup and updates no longer fail with "Empty data received" for NL hourly accounts (and similar), and short Tibber blips are smoothed over. |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| blueprints | ||
| brand | ||
| config_flow_handlers | ||
| coordinator | ||
| custom_translations | ||
| entity_utils | ||
| interval_pool | ||
| number | ||
| sensor | ||
| services | ||
| switch | ||
| translations | ||
| utils | ||
| __init__.py | ||
| config_flow.py | ||
| const.py | ||
| data.py | ||
| diagnostics.py | ||
| entity.py | ||
| icons.json | ||
| manifest.json | ||
| migrations.py | ||
| services.yaml | ||