mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
Added 40+ tests for TibberPricesTimeService: Quarter-hour rounding with ±2s tolerance: - 17 tests covering boundary cases (exact, within tolerance, outside) - Midnight wrap-around scenarios - Microsecond precision edge cases DST handling (23h/25h days): - Standard day: 96 intervals (24h × 4) - Spring DST: 92 intervals (23h × 4) - Fall DST: 100 intervals (25h × 4) - Note: Full DST tests require Europe/Berlin timezone setup Day boundaries and interval offsets: - Yesterday/today/tomorrow boundary calculation - Interval offset (current/next/previous) with day wrapping - Time comparison helpers (is_current_interval) Impact: Validates critical time handling logic. Ensures quarter-hour rounding works correctly for sensor updates despite HA scheduling jitter. |
||
|---|---|---|
| .. | ||
| tibber_prices | ||