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