mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-29 10:53:40 +00:00
Replaced int(time.minutes_until()) with time.minutes_until_rounded() in trend calculator (3 locations). The int() call truncated values (14.7 → 14) while timing sensors used standard rounding (14.7 → 15). All duration sensors now use the same rounding method (math.floor(seconds/60 + 0.5)), matching HA's timestamp rendering behavior. Impact: Trend countdown values may differ by ±1 minute compared to previous behavior. Consistency across all duration sensors improved. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| daily_stat.py | ||
| interval.py | ||
| lifecycle.py | ||
| metadata.py | ||
| rolling_hour.py | ||
| timing.py | ||
| trend.py | ||
| volatility.py | ||
| window_24h.py | ||