mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
Changed native_unit_of_measurement from HOURS to MINUTES for all 7 duration sensors. HA auto-converts to hours for display via suggested_unit_of_measurement=HOURS. Sensors affected: - next_price_trend_change_in - best_price_period_duration, best_price_remaining_minutes, best_price_next_in_minutes - peak_price_period_duration, peak_price_remaining_minutes, peak_price_next_in_minutes Removed _minutes_to_hours() conversion function — calculator values (minutes) are now passed through directly. BREAKING CHANGE: State values for all duration sensors change from hours to minutes (e.g. 1.5 → 90). The display unit remains hours (suggested_unit_of_measurement). Automations using numeric state comparisons must be updated (multiply old thresholds by 60). Impact: Users with automations comparing duration sensor states numerically need to update thresholds. Dashboard display is unchanged for new installations. Existing installations retain their configured display unit but the underlying numeric value changes. |
||
|---|---|---|
| .. | ||
| tibber_prices | ||