Don't include birdseye cameras on the timeline.

This commit is contained in:
Dermot Duffy
2022-04-23 11:33:36 -07:00
parent a0dc34f475
commit 5631850e6d
+7 -1
View File
@@ -280,7 +280,11 @@ class TimelineEventManager {
const params: BrowseMediaQueryParameters[] = [];
cameras.forEach((cameraConfig, cameraID) => {
(media === 'all' ? ['clips', 'snapshots'] : [media]).forEach((mediaType) => {
if (this._dateEnd && this._dateStart) {
if (
this._dateEnd &&
this._dateStart &&
cameraConfig.camera_name !== 'birdseye'
) {
const param = BrowseMediaUtil.getBrowseMediaQueryParameters(
hass,
cameraID,
@@ -588,10 +592,12 @@ export class FrigateCardTimelineCore extends LitElement {
protected _getGroups(): DataGroupCollectionType {
const groups: FrigateCardGroupData[] = [];
this.cameras?.forEach((cameraConfig, camera) => {
if (cameraConfig.camera_name !== 'birdseye') {
groups.push({
id: camera,
content: getCameraTitle(this.hass, cameraConfig),
});
}
});
return new DataSet(groups);
}