mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 20:36:35 +00:00
Remove kernel and agent versions from about page (#12750)
This commit is contained in:
parent
0623e7dce4
commit
1d5cc91a2d
@ -4,9 +4,7 @@ import { isComponentLoaded } from "../../../common/config/is_component_loaded";
|
|||||||
import "../../../components/ha-logo-svg";
|
import "../../../components/ha-logo-svg";
|
||||||
import {
|
import {
|
||||||
fetchHassioHassOsInfo,
|
fetchHassioHassOsInfo,
|
||||||
fetchHassioHostInfo,
|
|
||||||
HassioHassOSInfo,
|
HassioHassOSInfo,
|
||||||
HassioHostInfo,
|
|
||||||
} from "../../../data/hassio/host";
|
} from "../../../data/hassio/host";
|
||||||
import { fetchHassioInfo, HassioInfo } from "../../../data/hassio/supervisor";
|
import { fetchHassioInfo, HassioInfo } from "../../../data/hassio/supervisor";
|
||||||
import "../../../layouts/hass-subpage";
|
import "../../../layouts/hass-subpage";
|
||||||
@ -28,8 +26,6 @@ class HaConfigInfo extends LitElement {
|
|||||||
|
|
||||||
@property({ attribute: false }) public route!: Route;
|
@property({ attribute: false }) public route!: Route;
|
||||||
|
|
||||||
@state() private _hostInfo?: HassioHostInfo;
|
|
||||||
|
|
||||||
@state() private _osInfo?: HassioHassOSInfo;
|
@state() private _osInfo?: HassioHassOSInfo;
|
||||||
|
|
||||||
@state() private _hassioInfo?: HassioInfo;
|
@state() private _hassioInfo?: HassioInfo;
|
||||||
@ -71,12 +67,6 @@ class HaConfigInfo extends LitElement {
|
|||||||
${this._osInfo?.version
|
${this._osInfo?.version
|
||||||
? html`<h3>Home Assistant OS ${this._osInfo.version}</h3>`
|
? 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>
|
<p>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.info.path_configuration",
|
"ui.panel.config.info.path_configuration",
|
||||||
@ -177,15 +167,13 @@ class HaConfigInfo extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _loadSupervisorInfo(): Promise<void> {
|
private async _loadSupervisorInfo(): Promise<void> {
|
||||||
const [hostInfo, osInfo, hassioInfo] = await Promise.all([
|
const [osInfo, hassioInfo] = await Promise.all([
|
||||||
fetchHassioHostInfo(this.hass),
|
|
||||||
fetchHassioHassOsInfo(this.hass),
|
fetchHassioHassOsInfo(this.hass),
|
||||||
fetchHassioInfo(this.hass),
|
fetchHassioInfo(this.hass),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
this._hassioInfo = hassioInfo;
|
this._hassioInfo = hassioInfo;
|
||||||
this._osInfo = osInfo;
|
this._osInfo = osInfo;
|
||||||
this._hostInfo = hostInfo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user