Do not show ha live provider errors unless they are fatal.

This commit is contained in:
Dermot Duffy
2023-03-04 15:46:53 -08:00
parent 9c1c4d0546
commit 352cbd0c79
+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