mirror of https://github.com/home-assistant/core
19 lines
457 B
Python
19 lines
457 B
Python
"""Diagnostics support for CPU Speed."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from cpuinfo import cpuinfo
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, entry: ConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a config entry."""
|
|
info: dict[str, Any] = cpuinfo.get_cpu_info()
|
|
return info
|