hass.tibber_prices/custom_components/tibber_prices
Copilot a437d22b7a
Fix flex filter excluding valid low-price intervals in best price periods (#68)
Fixed bug in best price flex filter that incorrectly excluded prices
when checking for periods. The filter was requiring price >= daily_min,
which is unnecessary and could theoretically exclude valid low prices.

Changed from:
  in_flex = price >= criteria.ref_price and price <= flex_threshold

To:
  in_flex = price <= flex_threshold

This ensures all low prices up to the threshold are included in best
price period consideration, matching the expected behavior described
in the period calculation documentation.

The fix addresses the user's observation that qualifying intervals
appearing after the daily minimum in chronological order should be
included if they meet the flex criteria.
2025-12-25 09:49:31 +01:00
..
api fix(api): handle None values in API responses to prevent AttributeError 2025-12-13 14:02:30 +00:00
binary_sensor fix: support main and subunit currency 2025-12-11 23:07:06 +00:00
config_flow_handlers feat(config_flow): add price level gap tolerance for Tibber API level field 2025-12-22 20:25:30 +00:00
coordinator Fix flex filter excluding valid low-price intervals in best price periods (#68) 2025-12-25 09:49:31 +01:00
custom_translations i18n: update translations for average sensor display feature 2025-12-18 15:14:41 +00:00
entity_utils refactor(currency)!: rename major/minor to base/subunit currency terminology 2025-12-11 08:26:30 +00:00
interval_pool fix(interval_pool): prevent external mutation of cached intervals 2025-12-23 14:13:24 +00:00
sensor refactor(lifecycle): integrate with Pool for sensor metrics 2025-12-23 14:13:34 +00:00
services feat(services): add debug_clear_tomorrow for testing refresh cycle 2025-12-23 14:13:51 +00:00
translations feat(services): add debug_clear_tomorrow for testing refresh cycle 2025-12-23 14:13:51 +00:00
utils feat(utils): add coefficient of variation (CV) calculation 2025-12-22 23:21:38 +00:00
__init__.py refactor(interval_pool): improve reliability and test coverage 2025-12-23 10:10:35 +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(config_flow): add price level gap tolerance for Tibber API level field 2025-12-22 20:25:30 +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(api): handle None values in API responses to prevent AttributeError 2025-12-13 14:02:30 +00:00
icons.json feat(services): add new services and icons for enhanced functionality and user experience 2025-12-02 18:46:15 +00:00
manifest.json chore(release): bump version to 0.24.0 2025-12-22 23:40:14 +00:00
services.yaml feat(services): add debug_clear_tomorrow for testing refresh cycle 2025-12-23 14:13:51 +00:00