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
@@ -1564,6 +1564,7 @@ const DE = {
|
||||
lamp_hint_pendant: "Höhe = Abhängung unter der Decke. Antippen in 3D schaltet, lange drücken öffnet die Details.",
|
||||
theme: "Look",
|
||||
version_hint: "Installierte Version von NextFloor – Oberfläche; die Integration in Home Assistant meldet {backend}",
|
||||
symcon_version_hint: "Installierte Version von NextFloor – Oberfläche; das Symcon-Modul meldet {backend}",
|
||||
accent: "Akzentfarbe",
|
||||
accent_hint: "Eigene Akzentfarbe: Linien und Leuchtkanten im Neon-Look, Knöpfe und Pins – ↺ setzt das Neon-Cyan zurück",
|
||||
accent_reset: "Zurück zu Cyan",
|
||||
@@ -3642,6 +3643,7 @@ const EN: Record<Key, string> = {
|
||||
lamp_hint_pendant: "Height = drop below the ceiling. Tap in 3D to switch, long press for details.",
|
||||
theme: "Look",
|
||||
version_hint: "Installed version of NextFloor – the frontend; the integration in Home Assistant reports {backend}",
|
||||
symcon_version_hint: "Installed version of NextFloor – the frontend; the Symcon module reports {backend}",
|
||||
accent: "Accent colour",
|
||||
accent_hint: "An accent colour of your own: lines and glowing edges in the neon look, buttons and pins – ↺ brings the neon cyan back",
|
||||
accent_reset: "Back to cyan",
|
||||
|
||||
@@ -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