1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

Remove kernel and agent versions from about page (#12750)

This commit is contained in:
Joakim Sørensen
2022-05-23 20:01:59 +02:00
committed by GitHub
parent 0623e7dce4
commit 1d5cc91a2d

View File

@@ -4,9 +4,7 @@ import { isComponentLoaded } from "../../../common/config/is_component_loaded";
import "../../../components/ha-logo-svg";
import {
fetchHassioHassOsInfo,
fetchHassioHostInfo,
HassioHassOSInfo,
HassioHostInfo,
} from "../../../data/hassio/host";
import { fetchHassioInfo, HassioInfo } from "../../../data/hassio/supervisor";
import "../../../layouts/hass-subpage";
@@ -28,8 +26,6 @@ class HaConfigInfo extends LitElement {
@property({ attribute: false }) public route!: Route;
@state() private _hostInfo?: HassioHostInfo;
@state() private _osInfo?: HassioHassOSInfo;
@state() private _hassioInfo?: HassioInfo;
@@ -71,12 +67,6 @@ class HaConfigInfo extends LitElement {
${this._osInfo?.version
? html`<h3>Home Assistant OS ${this._osInfo.version}</h3>`
: ""}
${this._hostInfo
? html`
<h4>Kernel version ${this._hostInfo.kernel}</h4>
<h4>Agent version ${this._hostInfo.agent_version}</h4>
`
: ""}
<p>
${this.hass.localize(
"ui.panel.config.info.path_configuration",
@@ -177,15 +167,13 @@ class HaConfigInfo extends LitElement {
}
private async _loadSupervisorInfo(): Promise<void> {
const [hostInfo, osInfo, hassioInfo] = await Promise.all([
fetchHassioHostInfo(this.hass),
const [osInfo, hassioInfo] = await Promise.all([
fetchHassioHassOsInfo(this.hass),
fetchHassioInfo(this.hass),
]);
this._hassioInfo = hassioInfo;
this._osInfo = osInfo;
this._hostInfo = hostInfo;
}
static get styles(): CSSResultGroup {