mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
fix(build_periods): improve comment clarity for smoothing impact on interval qualification
This commit is contained in:
parent
a39eb66f49
commit
d3c02568ee
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue