Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/panels/config/info/ha-config-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 {
Expand Down