mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 11:30:01 +00:00
Hide download diagnostics if config entry is not loaded (#11383)
This commit is contained in:
@@ -210,7 +210,9 @@ export class HaConfigDevicePage extends LitElement {
|
||||
}
|
||||
|
||||
return Promise.all(
|
||||
this._integrations(device, this.entries).map(async (entry) => {
|
||||
this._integrations(device, this.entries)
|
||||
.filter((entry) => entry.state === "loaded")
|
||||
.map(async (entry) => {
|
||||
const info = await fetchDiagnosticHandler(this.hass, entry.domain);
|
||||
|
||||
if (!info.handlers.device && !info.handlers.config_entry) {
|
||||
|
||||
@@ -362,7 +362,7 @@ export class HaIntegrationCard extends LitElement {
|
||||
)}
|
||||
</mwc-list-item>`
|
||||
: ""}
|
||||
${this.supportsDiagnostics
|
||||
${this.supportsDiagnostics && item.state === "loaded"
|
||||
? html`<a
|
||||
href=${getConfigEntryDiagnosticsDownloadUrl(item.entry_id)}
|
||||
target="_blank"
|
||||
|
||||
Reference in New Issue
Block a user