mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
Removed periods_found_total and replaced with period_count_today / period_count_tomorrow. The old attribute counted all periods including yesterday (coordinator scope), causing a discrepancy vs. the displayed list (sensor scope, today+tomorrow only). Renamed periods_total → period_count_total for naming consistency with the new per-day attributes. Recalculate period_position / period_count_total / periods_remaining after the today+tomorrow filter so all three navigation attributes reflect the filtered scope. period_count_tomorrow is always present (0 when no tomorrow data or no periods found), enabling automations without default(0) guards. Removed internal periods_found key from relaxation metadata — it was only consumed by add_calculation_summary_attributes which is now removed. BREAKING CHANGE: periods_found_total removed (replace with period_count_today + period_count_tomorrow). periods_total renamed to period_count_total. Impact: Period navigation attributes (position/total/remaining) now correctly reflect today+tomorrow scope. Per-day counts allow automations to distinguish "2 periods today, 0 tomorrow" from "1+1". |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| 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 | ||