mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 13:23:41 +00:00
Binary sensor _handle_coordinator_update() was empty, blocking all push updates from coordinator. This prevented binary sensors from reflecting state changes immediately after API fetch or error conditions. Changes: - Implement _handle_coordinator_update() to call async_write_ha_state() - All binary sensors now receive push updates when coordinator has new data Binary sensors affected: - tomorrow_data_available: Now reflects data availability immediately after API fetch - connection: Now shows disconnected state immediately on auth/API errors - chart_data_export: Now updates chart data when price data changes - peak_price_period, best_price_period: Get push updates when periods change - data_lifecycle_status: Gets push updates on status changes Impact: Binary sensors update in real-time instead of waiting for next timer cycle or user interaction. Fixes stale state issue where tomorrow_data_available remained off despite data being available, and connection sensor not reflecting authentication failures immediately. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| attributes.py | ||
| core.py | ||
| definitions.py | ||
| types.py | ||