# Diagnostics

> A download with the data and state of a config entry or device, that users attach to an issue to help debug it.

Source: https://contributors.home-assistant.io/glossary/diagnostics/

- In code: `diagnostics.py`, `async_redact_data`
- In the UI: Download diagnostics

Integrations provide diagnostics with a `diagnostics.py` platform. Passwords, tokens, locations, and other private data must be removed from it, with `async_redact_data`.

## Related terms

- [Platform](https://contributors.home-assistant.io/glossary/platform/): How an integration provides one type of entity, like the `light` platform of the Hue integration. Also used for integration platforms, files that plug into another integration.
- [Config entry](https://contributors.home-assistant.io/glossary/config-entry/): One set-up instance of an integration, like one Hue bridge, with the configuration Home Assistant stores for it.
- [Repair](https://contributors.home-assistant.io/glossary/repair/): A problem Home Assistant shows users under Repairs, with what to do about it, like configuration that will stop working.
