mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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;
|
||||
}
|
||||
|
||||
if (!this.hass!.config.components.includes("stream")) {
|
||||
this._renderMJPEG();
|
||||
return;
|
||||
}
|
||||
|
||||
const videoEl = document.createElement("video");
|
||||
videoEl.style.width = "100%";
|
||||
videoEl.autoplay = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user