feat: Show diagnostics in yaml instead of json (#1550)

* feat: Show diagnostics in YAML instead of JSON

* Adding missing semicolon
This commit is contained in:
Dermot Duffy
2024-09-21 12:54:38 -07:00
committed by GitHub
parent b46ea36265
commit 5481c5956c
6 changed files with 22 additions and 7 deletions
+6 -2
View File
@@ -22,11 +22,15 @@ export class FrigateCardDiagnostics extends LitElement {
this._diagnostics = await getDiagnostics(this.hass, this.rawConfig);
}
protected render(): TemplateResult | void {
protected shouldUpdate(): boolean {
if (!this._diagnostics) {
this._fetchDiagnostics().then(() => this.requestUpdate());
return;
return false;
}
return true;
}
protected render(): TemplateResult | void {
return renderMessage({
message: localize('error.diagnostics'),
type: 'diagnostics',