mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
Add structured reason codes to no-result responses for find_cheapest_block, find_cheapest_hours, and find_cheapest_schedule. Each handler now classifies why no result was returned: no_data_in_range, no_intervals_matching_level_filter, insufficient_intervals_after_filter, or insufficient_contiguous_window. Add include_comparison_details flag to find_cheapest_schedule. When enabled, each scheduled task includes a price_comparison field showing the most expensive alternative window (mean, min, max, start, end) for cost-savings context. Document stable reason code contracts in en.json service descriptions. Add corresponding field translations to all locales (de, nb, nl, sv). Impact: Automations and scripts can now react to why no window was found, and schedules can display concrete savings vs. worst-case pricing. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_connect_segments.py | ||
| test_find_service_responses.py | ||
| test_period_data_format.py | ||
| test_search_range.py | ||