Add configuration directory to system health (#74318)

This commit is contained in:
Franck Nijhof 2022-07-02 22:10:38 +02:00 committed by GitHub
parent c24c6b38b1
commit 3bebbf7970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -2,15 +2,16 @@
"system_health": {
"info": {
"arch": "CPU Architecture",
"config_dir": "Configuration Directory",
"dev": "Development",
"docker": "Docker",
"user": "User",
"hassio": "Supervisor",
"installation_type": "Installation Type",
"os_name": "Operating System Family",
"os_version": "Operating System Version",
"python_version": "Python Version",
"timezone": "Timezone",
"user": "User",
"version": "Version",
"virtualenv": "Virtual Environment"
}

View File

@ -29,4 +29,5 @@ async def system_health_info(hass):
"os_version": info.get("os_version"),
"arch": info.get("arch"),
"timezone": info.get("timezone"),
"config_dir": hass.config.config_dir,
}

View File

@ -2,6 +2,7 @@
"system_health": {
"info": {
"arch": "CPU Architecture",
"config_dir": "Configuration Directory",
"dev": "Development",
"docker": "Docker",
"hassio": "Supervisor",