1 """Provide info to system health."""
3 from __future__
import annotations
16 """Register system health callbacks."""
17 register.async_register_info(system_health_info)
21 """Get info for the info page."""
22 info = await system_info.async_get_system_info(hass)
25 "version": f
"core-{info.get('version')}",
26 "installation_type": info.get(
"installation_type"),
27 "dev": info.get(
"dev"),
28 "hassio": info.get(
"hassio"),
29 "docker": info.get(
"docker"),
30 "user": info.get(
"user"),
31 "virtualenv": info.get(
"virtualenv"),
32 "python_version": info.get(
"python_version"),
33 "os_name": info.get(
"os_name"),
34 "os_version": info.get(
"os_version"),
35 "arch": info.get(
"arch"),
36 "timezone": info.get(
"timezone"),
37 "config_dir": hass.config.config_dir,
None async_register(HomeAssistant hass, system_health.SystemHealthRegistration register)
dict[str, Any] system_health_info(HomeAssistant hass)