mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 13:23:41 +00:00
Changed needs_tomorrow_data() to auto-calculate tomorrow date using get_intervals_for_day_offsets([1]) helper instead of requiring explicit tomorrow_date parameter. Changes: - coordinator/helpers.py: needs_tomorrow_data() signature simplified * Uses get_intervals_for_day_offsets([1]) to detect tomorrow intervals * No longer requires tomorrow_date parameter (calculated automatically) * Consistent with all other data access patterns - coordinator/data_fetching.py: Removed tomorrow_date calculation and passing * Removed unused date import * Simplified method call: needs_tomorrow_data() instead of needs_tomorrow_data(tomorrow_date) - sensor/calculators/lifecycle.py: Updated calls to _needs_tomorrow_data() * Removed tomorrow_date variable where it was only used for this call * Combined nested if statements with 'and' operator Impact: Cleaner API, fewer parameters to track, consistent with other helper functions that auto-calculate dates based on current time. |
||
|---|---|---|
| .. | ||
| __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 | ||