Fix automation trace link (#13563)

This commit is contained in:
Paul Bottein 2022-09-02 19:02:50 +02:00 committed by GitHub
parent 320d8e6190
commit 93e7927686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,15 +144,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
<ha-svg-icon slot="graphic" .path=${mdiPlay}></ha-svg-icon>
</mwc-list-item>
${stateObj
? html`<a
href="/config/automation/trace/${this._config
? this._config.id
: ""}"
target="_blank"
.disabled=${!stateObj}
>
<mwc-list-item graphic="icon" .disabled=${!stateObj}>
${stateObj && this._config
? html`<a href="/config/automation/trace/${this._config.id}">
<mwc-list-item graphic="icon">
${this.hass.localize(
"ui.panel.config.automation.editor.show_trace"
)}