From d02e460b1d585cd6045524c3e544ae932b0d8259 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski <75446+jpawlowski@users.noreply.github.com> Date: Wed, 12 Nov 2025 17:49:25 +0100 Subject: [PATCH] Update custom_components/tibber_prices/coordinator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- custom_components/tibber_prices/coordinator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/tibber_prices/coordinator.py b/custom_components/tibber_prices/coordinator.py index 1decedb..8afac64 100644 --- a/custom_components/tibber_prices/coordinator.py +++ b/custom_components/tibber_prices/coordinator.py @@ -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)