mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43: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. |
||
|---|---|---|
| .. | ||
| attributes | ||
| calculators | ||
| __init__.py | ||
| chart_data.py | ||
| chart_metadata.py | ||
| core.py | ||
| definitions.py | ||
| helpers.py | ||
| types.py | ||
| value_getters.py | ||