Update diagnostics.py
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user