Show kernel version on linux (#32276)

This commit is contained in:
Balazs Sandor 2020-02-27 22:59:30 +01:00 committed by GitHub
parent 5a56d0ec1d
commit 75e8d49af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -23,14 +23,13 @@ async def async_get_system_info(hass: HomeAssistantType) -> Dict:
"arch": platform.machine(),
"timezone": str(hass.config.time_zone),
"os_name": platform.system(),
"os_version": platform.release(),
}
if platform.system() == "Windows":
info_object["os_version"] = platform.win32_ver()[0]
elif platform.system() == "Darwin":
info_object["os_version"] = platform.mac_ver()[0]
elif platform.system() == "FreeBSD":
info_object["os_version"] = platform.release()
elif platform.system() == "Linux":
info_object["docker"] = os.path.isfile("/.dockerenv")