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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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