mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 14:56:37 +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`
|
||||
${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)}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user