1 """Ecovacs diagnostics."""
3 from __future__
import annotations
11 from .
import EcovacsConfigEntry
12 from .const
import CONF_OVERRIDE_MQTT_URL, CONF_OVERRIDE_REST_URL
18 CONF_OVERRIDE_MQTT_URL,
19 CONF_OVERRIDE_REST_URL,
21 REDACT_DEVICE = {
"did", CONF_NAME,
"homeId"}
25 hass: HomeAssistant, config_entry: EcovacsConfigEntry
27 """Return diagnostics for a config entry."""
28 controller = config_entry.runtime_data
29 diag: dict[str, Any] = {
35 for device
in controller.devices
37 diag[
"legacy_devices"] = [
39 for device
in controller.legacy_devices
dict async_redact_data(Mapping data, Iterable[Any] to_redact)
dict[str, Any] async_get_config_entry_diagnostics(HomeAssistant hass, EcovacsConfigEntry config_entry)