mirror of https://github.com/home-assistant/core
Show kernel version on linux (#32276)
This commit is contained in:
parent
5a56d0ec1d
commit
75e8d49af1
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue