Update custom_components/tibber_prices/period_utils/period_building.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Julian Pawlowski 2025-11-13 23:47:48 +01:00 committed by GitHub
parent aef471cbc8
commit 0ac91da3a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,7 +164,7 @@ 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 outcome
"smoothing_was_impactful": smoothing_was_impactful, # Only True if smoothing changed whether the interval qualified for period inclusion
"is_level_gap": is_level_gap, # Track if kept due to level gap tolerance
}
)