From 5631850e6d1821d29a369c876a19b8482d4a60f0 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 23 Apr 2022 11:33:36 -0700 Subject: [PATCH] Don't include birdseye cameras on the timeline. --- src/components/timeline.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/timeline.ts b/src/components/timeline.ts index 7136f50b..a473b3c3 100644 --- a/src/components/timeline.ts +++ b/src/components/timeline.ts @@ -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) => { - groups.push({ - id: camera, - content: getCameraTitle(this.hass, cameraConfig), - }); + if (cameraConfig.camera_name !== 'birdseye') { + groups.push({ + id: camera, + content: getCameraTitle(this.hass, cameraConfig), + }); + } }); return new DataSet(groups); }