Fix diagnostic download (#26466)

Diagnostic fix 2
This commit is contained in:
Simon Lamon
2025-08-09 15:17:59 +02:00
committed by GitHub
parent 60a18185d7
commit 4f61d5689b

View File

@@ -1442,10 +1442,11 @@ export class HaConfigDevicePage extends LitElement {
}
private async _signUrl(ev) {
const signedUrl = await getSignedPath(
this.hass,
ev.currentTarget.getAttribute("href")
);
const a = ev.currentTarget.getAttribute("href")
? ev.currentTarget
: ev.currentTarget.closest("a");
const signedUrl = await getSignedPath(this.hass, a.getAttribute("href"));
fileDownload(signedUrl.path);
}