mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
chore(periods): house keeping
This commit is contained in:
parent
9cb5b35184
commit
ba08bd34c6
1 changed files with 6 additions and 4 deletions
|
|
@ -907,8 +907,9 @@ class TibberPricesPeriodCalculator:
|
|||
)
|
||||
|
||||
# Check if best price periods should be shown
|
||||
# If relaxation is enabled, always calculate (relaxation will try "any" filter)
|
||||
# If relaxation is disabled, apply level filter check
|
||||
# If relaxation is enabled, always calculate (relaxation tries configured level filter
|
||||
# first, then falls back to "any" per flex step if still insufficient)
|
||||
# If relaxation is disabled, apply level filter check upfront
|
||||
if enable_relaxation_best:
|
||||
show_best_price = bool(all_prices)
|
||||
else:
|
||||
|
|
@ -1009,8 +1010,9 @@ class TibberPricesPeriodCalculator:
|
|||
)
|
||||
|
||||
# Check if peak price periods should be shown
|
||||
# If relaxation is enabled, always calculate (relaxation will try "any" filter)
|
||||
# If relaxation is disabled, apply level filter check
|
||||
# If relaxation is enabled, always calculate (relaxation tries configured level filter
|
||||
# first, then falls back to "any" per flex step if still insufficient)
|
||||
# If relaxation is disabled, apply level filter check upfront
|
||||
if enable_relaxation_peak:
|
||||
show_peak_price = bool(all_prices)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue