mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Guard load diagnostics (#11518)
This commit is contained in:
parent
5e80a2b465
commit
19e1eaf2d7
@ -201,6 +201,10 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _renderDiagnosticButtons(requestId: number): Promise<void> {
|
private async _renderDiagnosticButtons(requestId: number): Promise<void> {
|
||||||
|
if (!isComponentLoaded(this.hass, "diagnostics")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const device = this._device(this.deviceId, this.devices);
|
const device = this._device(this.deviceId, this.devices);
|
||||||
|
|
||||||
if (!device) {
|
if (!device) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user