mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
Update custom_components/tibber_prices/coordinator.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
3e22292c77
commit
d02e460b1d
1 changed files with 4 additions and 1 deletions
|
|
@ -903,9 +903,12 @@ class TibberPricesDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||
|
||||
# Periods shorter than MIN_INTERVALS_FOR_GAP_TOLERANCE (1.5h) use strict filtering
|
||||
if interval_count < MIN_INTERVALS_FOR_GAP_TOLERANCE:
|
||||
period_type = "peak" if reverse_sort else "best"
|
||||
_LOGGER.debug(
|
||||
"Using strict filtering for short period (%d intervals)",
|
||||
"Using strict filtering for short %s period (%d intervals < %d min required for gap tolerance)",
|
||||
period_type,
|
||||
interval_count,
|
||||
MIN_INTERVALS_FOR_GAP_TOLERANCE,
|
||||
)
|
||||
return self._check_short_period_strict(today_intervals, level_order, reverse_sort=reverse_sort)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue