mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00

* Use entry.runtime_data * switch * create new type * Extend ConfigEntry * simplify runtime_data, clean up data types * More config_entry types * Yet more missing type changes
27 lines
655 B
Python
27 lines
655 B
Python
"""Diagnostics support for Honeywell."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from . import HoneywellConfigEntry
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant,
|
|
config_entry: HoneywellConfigEntry,
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a config entry."""
|
|
honeywell = config_entry.runtime_data
|
|
|
|
return {
|
|
f"Device {device}": {
|
|
"UI Data": module.raw_ui_data,
|
|
"Fan Data": module.raw_fan_data,
|
|
"DR Data": module.raw_dr_data,
|
|
}
|
|
for device, module in honeywell.devices.items()
|
|
}
|