mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +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. |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| config_flow_handlers | ||
| coordinator | ||
| custom_translations | ||
| entity_utils | ||
| sensor | ||
| services | ||
| translations | ||
| utils | ||
| __init__.py | ||
| config_flow.py | ||
| const.py | ||
| data.py | ||
| diagnostics.py | ||
| entity.py | ||
| manifest.json | ||
| services.yaml | ||