feat: Surface the provider's error cause in the media_unavailable notification (#2599)
- Closes: #2592
This commit is contained in:
@@ -166,7 +166,7 @@ void customElements.whenDefined('ha-web-rtc-player').then(() => {
|
||||
// player can fail more than once and every failure must be reported.
|
||||
const errored = !!this._error;
|
||||
if (errored && !this._lastErrored) {
|
||||
dispatchLiveErrorEvent(this);
|
||||
dispatchLiveErrorEvent(this, { detail: this._error });
|
||||
}
|
||||
this._lastErrored = errored;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user