mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Catch exception if diagnostics are not supported for domain (#17067)
This commit is contained in:
parent
32a9b13af0
commit
24e531a16c
@ -898,10 +898,14 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
if (!this.domain || !isComponentLoaded(this.hass, "diagnostics")) {
|
if (!this.domain || !isComponentLoaded(this.hass, "diagnostics")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._diagnosticHandler = await fetchDiagnosticHandler(
|
try {
|
||||||
this.hass,
|
this._diagnosticHandler = await fetchDiagnosticHandler(
|
||||||
this.domain
|
this.hass,
|
||||||
);
|
this.domain
|
||||||
|
);
|
||||||
|
} catch (err: any) {
|
||||||
|
// No issue, as diagnostics are not required
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _handleEnableDebugLogging() {
|
private async _handleEnableDebugLogging() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user