hass.tibber_prices/custom_components/tibber_prices/services
Julian Pawlowski feaf748cb6 feat(services): isolate price-fetch failures and add success flag to responses
Add a track_degraded parameter to IntervalPool.get_intervals so service calls
(track_degraded=False) never flip the coordinator's sensor-health flags or use
the covers-current-interval cache fallback; authentication errors still
propagate. All price-fetching services now go through
async_fetch_service_intervals and return a structured response with a
top-level success flag: success=false with reason="price_data_unavailable" on
a real API outage, and success=true (possibly empty) otherwise.

Impact: Action calls (get_price, find_cheapest_*, plan_charging) always return
the expected shape, never impair sensors during a Tibber outage, and let
automations distinguish an outage from "no data yet".
2026-05-30 14:46:23 +00:00
..
charging feat(services): add plan_charging service for battery/EV scheduling 2026-04-20 21:43:41 +00:00
__init__.py feat(services): add plan_charging service for battery/EV scheduling 2026-04-20 21:43:41 +00:00
debug_clear_tomorrow.py fix(services): use injected now in resolve_search_range day offset 2026-04-14 19:33:24 +00:00
entity_resolver.py feat(services): allow entity IDs as service parameter values 2026-04-20 18:44:24 +00:00
find_cheapest_block.py feat(services): isolate price-fetch failures and add success flag to responses 2026-05-30 14:46:23 +00:00
find_cheapest_hours.py feat(services): isolate price-fetch failures and add success flag to responses 2026-05-30 14:46:23 +00:00
find_cheapest_schedule.py feat(services): isolate price-fetch failures and add success flag to responses 2026-05-30 14:46:23 +00:00
find_most_expensive_block.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
find_most_expensive_hours.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
formatters.py fix(services): use injected now in resolve_search_range day offset 2026-04-14 19:33:24 +00:00
get_apexcharts_yaml.py feat(services): add price_source parameter to get_chartdata and get_apexcharts_yaml 2026-05-03 18:48:36 +00:00
get_chartdata.py feat(services): add price_source parameter to get_chartdata and get_apexcharts_yaml 2026-05-03 18:48:36 +00:00
get_price.py feat(services): isolate price-fetch failures and add success flag to responses 2026-05-30 14:46:23 +00:00
helpers.py feat(services): isolate price-fetch failures and add success flag to responses 2026-05-30 14:46:23 +00:00
plan_charging.py feat(services): isolate price-fetch failures and add success flag to responses 2026-05-30 14:46:23 +00:00
refresh_user_data.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
relaxation.py feat(pricing): add relaxation logic for progressive filter loosening 2026-04-18 21:27:05 +00:00