Merge pull request #991 from dermotduffy/fewer-ha-errors

Do not show `ha` live provider errors unless they are fatal
This commit is contained in:
Dermot Duffy
2023-03-04 15:51:20 -08:00
committed by GitHub
+6 -2
View File
@@ -73,8 +73,12 @@ customElements.whenDefined('ha-hls-player').then(() => {
// ===================================================================================== // =====================================================================================
protected render(): TemplateResult { protected render(): TemplateResult {
if (this._error) { if (this._error) {
// Use native Frigate card error handling. if (this._errorIsFatal) {
return dispatchErrorMessageEvent(this, this._error); // Use native Frigate card error handling for fatal errors.
return dispatchErrorMessageEvent(this, this._error);
} else {
console.error(this._error);
}
} }
return html` return html`
<video <video