Fix for Camera streams that don't support stream (#6863)

This commit is contained in:
Zack Barett 2020-09-08 13:57:17 -05:00 committed by GitHub
parent 869b7c85ca
commit b30ee884a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ class HaCameraStream extends LitElement {
}
protected updated(changedProps: PropertyValues): void {
if (changedProps.has("stateObj")) {
if (changedProps.has("stateObj") && !this._shouldRenderMJPEG) {
this._forceMJPEG = undefined;
this._getStreamUrl();
}