diff --git a/src/data/system_health.ts b/src/data/system_health.ts index 60bdc21337..d8fb40c924 100644 --- a/src/data/system_health.ts +++ b/src/data/system_health.ts @@ -26,13 +26,29 @@ export type SystemCheckValue = | boolean | SystemCheckValueObject; -export type SystemHealthInfo = Record< - string, - { +export type SystemHealthInfo = Partial<{ + homeassistant: { + info: { + version: string; + installation_type: string; + dev: boolean; + hassio: boolean; + docker: boolean; + user: string; + virtualenv: boolean; + python_version: string; + os_name: string; + os_version: string; + arch: string; + timezone: string; + config_dir: string; + }; + }; + [domain: string]: { manage_url?: string; info: Record; - } ->; + }; +}>; interface SystemHealthEventInitial { type: "initial"; diff --git a/src/panels/config/info/ha-config-info.ts b/src/panels/config/info/ha-config-info.ts index d58f4a858e..cb2b7fbf23 100644 --- a/src/panels/config/info/ha-config-info.ts +++ b/src/panels/config/info/ha-config-info.ts @@ -29,6 +29,7 @@ import { mdiHomeAssistant } from "../../../resources/home-assistant-logo-svg"; import { haStyle } from "../../../resources/styles"; import type { HomeAssistant, Route } from "../../../types"; import { documentationUrl } from "../../../util/documentation-url"; +import { subscribeSystemHealthInfo } from "../../../data/system_health"; const JS_TYPE = __BUILD__; const JS_VERSION = __VERSION__; @@ -99,6 +100,8 @@ class HaConfigInfo extends LitElement { @state() private _hassioInfo?: HassioInfo; + @state() private _installationMethod?: string; + protected render(): TemplateResult { const hass = this.hass; const customUiList: { name: string; url: string; version: string }[] = @@ -127,6 +130,14 @@ class HaConfigInfo extends LitElement {

Home Assistant