mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Bail out early when no stream component (#2927)
This commit is contained in:
parent
1451a78dd3
commit
92e6c5adfd
@ -46,6 +46,11 @@ class MoreInfoCamera extends UpdatingElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.hass!.config.components.includes("stream")) {
|
||||||
|
this._renderMJPEG();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const videoEl = document.createElement("video");
|
const videoEl = document.createElement("video");
|
||||||
videoEl.style.width = "100%";
|
videoEl.style.width = "100%";
|
||||||
videoEl.autoplay = true;
|
videoEl.autoplay = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user