From 75e8d49af1e08fd25ad854840391629920f1fbe4 Mon Sep 17 00:00:00 2001 From: Balazs Sandor Date: Thu, 27 Feb 2020 22:59:30 +0100 Subject: [PATCH] Show kernel version on linux (#32276) --- homeassistant/helpers/system_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/helpers/system_info.py b/homeassistant/helpers/system_info.py index 7d1d6f2b3e7..26ef3929a3f 100644 --- a/homeassistant/helpers/system_info.py +++ b/homeassistant/helpers/system_info.py @@ -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")