From d3c02568ee95062ba47d09b580f1aab9134a4305 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Thu, 13 Nov 2025 23:00:26 +0000 Subject: [PATCH] fix(build_periods): improve comment clarity for smoothing impact on interval qualification --- .../tibber_prices/period_utils/period_building.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/tibber_prices/period_utils/period_building.py b/custom_components/tibber_prices/period_utils/period_building.py index 01b18c9..6b9ad23 100644 --- a/custom_components/tibber_prices/period_utils/period_building.py +++ b/custom_components/tibber_prices/period_utils/period_building.py @@ -164,7 +164,8 @@ def build_periods( # noqa: PLR0915 - Complex period building logic requires man "interval_time": f"{starts_at.hour:02d}:{starts_at.minute:02d}", "price": price_original, # Use original price in period data "interval_start": starts_at, - "smoothing_was_impactful": smoothing_was_impactful, # Only True if smoothing changed whether the interval qualified for period inclusion + # Only True if smoothing changed whether the interval qualified for period inclusion + "smoothing_was_impactful": smoothing_was_impactful, "is_level_gap": is_level_gap, # Track if kept due to level gap tolerance } )