Use "No traces found" automation translation in ha-script-trace (#23010)

This commit is contained in:
Jan-Philipp Benecke 2024-11-27 07:26:48 +01:00 committed by GitHub
parent adb22abd7d
commit f9701b2363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,7 +209,11 @@ export class HaScriptTrace extends LitElement {
${this._traces === undefined
? html`<div class="container">Loading…</div>`
: this._traces.length === 0
? html`<div class="container">No traces found</div>`
? html`<div class="container">
${this.hass!.localize(
"ui.panel.config.automation.trace.no_traces_found"
)}
</div>`
: this._trace === undefined
? ""
: html`