mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix demo camera images (#3179)
This commit is contained in:
parent
95e918b6ac
commit
7827cec212
@ -48,12 +48,12 @@ class HaCameraStream extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
${this._shouldRenderMJPEG
|
${__DEMO__ || this._shouldRenderMJPEG
|
||||||
? html`
|
? html`
|
||||||
<img
|
<img
|
||||||
@load=${this._elementResized}
|
@load=${this._elementResized}
|
||||||
.src=${__DEMO__
|
.src=${__DEMO__
|
||||||
? "/demo/webcamp.jpg"
|
? `/api/camera_proxy_stream/${this.stateObj.entity_id}`
|
||||||
: computeMJPEGStreamUrl(this.stateObj)}
|
: computeMJPEGStreamUrl(this.stateObj)}
|
||||||
.alt=${computeStateName(this.stateObj)}
|
.alt=${computeStateName(this.stateObj)}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user