Do not show ha live provider errors unless they are fatal.
This commit is contained in:
@@ -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) {
|
||||||
|
// Use native Frigate card error handling for fatal errors.
|
||||||
return dispatchErrorMessageEvent(this, this._error);
|
return dispatchErrorMessageEvent(this, this._error);
|
||||||
|
} else {
|
||||||
|
console.error(this._error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return html`
|
return html`
|
||||||
<video
|
<video
|
||||||
|
|||||||
Reference in New Issue
Block a user