Skip to content

Commit

Permalink
Clean up diag data
Browse files Browse the repository at this point in the history
  • Loading branch information
dala318 committed Dec 20, 2024
1 parent 949a009 commit 3019d12
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions custom_components/nordpool_planner/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@ async def async_get_config_entry_diagnostics(
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
diag_data = {
# "config_entry": async_redact_data(config_entry, TO_REDACT),
# "planner": async_redact_data(hass.data[DOMAIN][config_entry.entry_id], TO_REDACT),
"config_entry": config_entry,
# "config_entry": config_entry, # Already included in the planner
"planner": hass.data[DOMAIN][config_entry.entry_id],
}
# planner: NordpoolPlanner = hass.data[DOMAIN][config_entry.entry_id]
# if planner is not None:
# # diag_data["planner"] = planner.__dict__
# # diag_data["prices"] = planner._prices_entity.__dict__
# else:
# _LOGGER.warning("NordpoolPlanner is not available")

return diag_data

0 comments on commit 3019d12

Please sign in to comment.