Update diagnostics.py

This commit is contained in:
balgerion
2025-07-01 10:54:34 +02:00
committed by GitHub
parent 67df551dcf
commit 04681089d8

View File

@ -162,4 +162,11 @@ async def async_get_config_entry_diagnostics(
"yearly_balance": cost_coordinator.data.get("yearly", {}).get("total_balance"), "yearly_balance": cost_coordinator.data.get("yearly", {}).get("total_balance"),
} }
# Check for retry configuration
if hasattr(cost_coordinator, 'retry_mechanism'):
diagnostics_data["cost_coordinator"]["retry_config"] = {
"max_retries": cost_coordinator.retry_mechanism.max_retries,
"base_delay": cost_coordinator.retry_mechanism.base_delay,
}
return diagnostics_data return diagnostics_data