Fix demo camera images (#3179)

This commit is contained in:
Paulus Schoutsen 2019-05-09 09:43:52 -07:00 committed by GitHub
parent 95e918b6ac
commit 7827cec212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,12 +48,12 @@ class HaCameraStream extends LitElement {
}
return html`
${this._shouldRenderMJPEG
${__DEMO__ || this._shouldRenderMJPEG
? html`
<img
@load=${this._elementResized}
.src=${__DEMO__
? "/demo/webcamp.jpg"
? `/api/camera_proxy_stream/${this.stateObj.entity_id}`
: computeMJPEGStreamUrl(this.stateObj)}
.alt=${computeStateName(this.stateObj)}
/>