From 805c76db3d4fc2b838537f66b23e49e5a360571b Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Wed, 12 Nov 2025 16:59:19 +0000 Subject: [PATCH] fix(const): improve clarity in comments regarding period lengths for price alerts --- custom_components/tibber_prices/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/tibber_prices/const.py b/custom_components/tibber_prices/const.py index 8c2fcf4..1542d83 100644 --- a/custom_components/tibber_prices/const.py +++ b/custom_components/tibber_prices/const.py @@ -59,7 +59,8 @@ DEFAULT_PEAK_PRICE_MIN_DISTANCE_FROM_AVG = 5 # 5% minimum distance from daily a DEFAULT_BEST_PRICE_MIN_PERIOD_LENGTH = 60 # 60 minutes minimum period length for best price (user-facing, minutes) # Note: Peak price warnings are allowed for shorter periods (30 min) than best price periods (60 min). # This asymmetry is intentional: shorter peak periods are acceptable for alerting users to brief expensive spikes, -# while best price periods require longer duration to ensure meaningful savings and avoid recommending short, impractical windows. +# while best price periods require longer duration to ensure meaningful savings and avoid recommending short, +# impractical windows. DEFAULT_PEAK_PRICE_MIN_PERIOD_LENGTH = 30 # 30 minutes minimum period length for peak price (user-facing, minutes) DEFAULT_PRICE_RATING_THRESHOLD_LOW = -10 # Default rating threshold low percentage DEFAULT_PRICE_RATING_THRESHOLD_HIGH = 10 # Default rating threshold high percentage