mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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")) {
|
||||
return;
|
||||
}
|
||||
this._diagnosticHandler = await fetchDiagnosticHandler(
|
||||
this.hass,
|
||||
this.domain
|
||||
);
|
||||
try {
|
||||
this._diagnosticHandler = await fetchDiagnosticHandler(
|
||||
this.hass,
|
||||
this.domain
|
||||
);
|
||||
} catch (err: any) {
|
||||
// No issue, as diagnostics are not required
|
||||
}
|
||||
}
|
||||
|
||||
private async _handleEnableDebugLogging() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user