hass.tibber_prices/custom_components/tibber_prices
Julian Pawlowski 779e22a84e
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
fix(periods): replace redundant total attributes with per-day counts
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".
2026-04-12 09:50:31 +00:00
..
api feat(api): add energy and tax fields to Tibber GraphQL queries 2026-04-09 18:27:21 +00:00
binary_sensor fix(periods): replace redundant total attributes with per-day counts 2026-04-12 09:50:31 +00:00
brand feat(brand): update dark icons for improved visual consistency 2026-04-09 19:04:26 +00:00
config_flow_handlers refactor(options_flow): optimize loading of override translations based on active overrides 2026-04-12 08:54:41 +00:00
coordinator fix(periods): replace redundant total attributes with per-day counts 2026-04-12 09:50:31 +00:00
custom_translations feat(sensors): add day pattern detection sensors (valley/peak/flat/rising/falling) 2026-04-11 21:07:16 +00:00
entity_utils refactor: remove dead code across integration 2026-04-11 12:13:26 +00:00
interval_pool perf(interval_pool): hoist fetch_groups and precompute period criteria 2026-04-06 14:35:33 +00:00
number refactor(entities): remove redundant name= from all entity descriptions 2026-04-06 13:16:07 +00:00
sensor fix(periods): replace redundant total attributes with per-day counts 2026-04-12 09:50:31 +00:00
services feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
switch refactor: remove dead code across integration 2026-04-11 12:13:26 +00:00
translations feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
utils feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
__init__.py feat(migrations): add entity auto-migration system with HA repairs 2026-04-10 12:21:49 +00:00
config_flow.py feat(config_flow): add price level gap tolerance for Tibber API level field 2025-12-22 20:25:30 +00:00
const.py feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
data.py feat(interval-pool): add intelligent interval caching and memory optimization 2025-11-25 20:44:39 +00:00
diagnostics.py refactor(lifecycle): integrate with Pool for sensor metrics 2025-12-23 14:13:34 +00:00
entity.py fix(lint): apply Python 3.14 ruff rules and update HA minimum version 2026-04-11 10:56:34 +00:00
icons.json feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
manifest.json chore(release): bump version to 0.30.0 2026-04-09 19:05:27 +00:00
migrations.py feat(migrations): add entity auto-migration system with HA repairs 2026-04-10 12:21:49 +00:00
services.yaml feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00