mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26: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 {
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user