Always load error log in safe mode (#5442)

This commit is contained in:
Paulus Schoutsen 2020-04-04 08:46:52 -07:00 committed by GitHub
parent ae1c519d3a
commit 46c6f86d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,14 @@ class ErrorLogCard extends LitElement {
`; `;
} }
protected firstUpdated(changedProps) {
super.firstUpdated(changedProps);
if (this.hass?.config.safe_mode) {
this._refreshErrorLog();
}
}
static get styles(): CSSResult { static get styles(): CSSResult {
return css` return css`
.error-log-intro { .error-log-intro {