Add External app version into ha-config-info (#27064)

pull/27069/head
Timothy 2025-09-16 13:18:18 +02:00 committed by GitHub
parent 98c4e34a23
commit ac87e2280d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 1 deletions

View File

@ -304,6 +304,7 @@ export interface ExternalConfig {
hasBarCodeScanner: number;
canSetupImprov: boolean;
downloadFileSupported: boolean;
appVersion: string;
}
export class ExternalMessaging {

View File

@ -133,7 +133,7 @@ class HaConfigInfo extends LitElement {
<li>
<span class="version-label"
>${this.hass.localize(
`ui.panel.config.info.installation_method`
"ui.panel.config.info.installation_method"
)}</span
>
<span class="version">${this._installationMethod || "…"}</span>
@ -170,6 +170,20 @@ class HaConfigInfo extends LitElement {
${JS_VERSION}${JS_TYPE !== "modern" ? ` · ${JS_TYPE}` : ""}
</span>
</li>
${this.hass.auth.external?.config.appVersion
? html`
<li>
<span class="version-label"
>${this.hass.localize(
"ui.panel.config.info.external_app_version"
)}</span
>
<span class="version"
>${this.hass.auth.external?.config.appVersion}</span
>
</li>
`
: nothing}
</ul>
</ha-card>
<ha-card outlined class="ohf">

View File

@ -3261,6 +3261,7 @@
"info": {
"caption": "About",
"installation_method": "Installation method",
"external_app_version": "Companion app",
"copy_menu": "Copy menu",
"copy_raw": "Raw text",
"copy_github": "For GitHub",