fix: remove Home Assistant version notices from Symcon
This commit is contained in:
1 parent
888b6c9b79
commit
4a8da8ad0c
7 files changed
+18
-14
No files matched your search
@@ -389,7 +389,7 @@ export class NextFloorPanel extends LitElement {
|
||||
${this.isAdmin && this.hass.symconRefresh ? html`<button class="nf-btn nf-reload-variables" ?disabled=${this._variablesLoading} aria-busy=${this._variablesLoading} @click=${() => void this.reloadVariables()}>↻ ${this.t(this._variablesLoading ? "symcon_variables_loading" : "symcon_variables_reload")}</button>` : nothing}
|
||||
${this._mode === "view" && building?.floors.some((f) => f.rooms.length) ? this.renderViewOptions() : nothing}
|
||||
${this._mode === "editor" && saveState !== "idle" ? html`<span class="nf-save nf-save-${saveState}">${this.t(saveLabel)}</span>` : nothing}
|
||||
<span class="nf-version" title=${this.t("version_hint", { backend: this.data.backendVersion ?? "?" })}>v${this.data.frontendVersion}</span>
|
||||
<span class="nf-version" title=${this.t(isSymcon(this.hass) ? "symcon_version_hint" : "version_hint", { backend: this.data.backendVersion ?? "?" })}>v${this.data.frontendVersion}</span>
|
||||
</header>`;
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@ export class NextFloorPanel extends LitElement {
|
||||
const d = this.data;
|
||||
const notices: TemplateResult[] = [];
|
||||
if (this._variablesNotice) notices.push(html`<div class="nf-notice ${this._variablesError ? "nf-notice-error" : ""}" role=${this._variablesError ? "alert" : "status"}>${this._variablesNotice}</div>`);
|
||||
if (d.needsRestart) {
|
||||
if (!isSymcon(this.hass) && d.needsRestart) {
|
||||
// an old bundle in the browser or the companion app is cured by a reload, not by a restart
|
||||
notices.push(
|
||||
d.versionGap === "frontend"
|
||||
|
||||
Reference in new issue
Block a user