Don't include birdseye cameras on the timeline.
This commit is contained in:
@@ -280,7 +280,11 @@ class TimelineEventManager {
|
|||||||
const params: BrowseMediaQueryParameters[] = [];
|
const params: BrowseMediaQueryParameters[] = [];
|
||||||
cameras.forEach((cameraConfig, cameraID) => {
|
cameras.forEach((cameraConfig, cameraID) => {
|
||||||
(media === 'all' ? ['clips', 'snapshots'] : [media]).forEach((mediaType) => {
|
(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(
|
const param = BrowseMediaUtil.getBrowseMediaQueryParameters(
|
||||||
hass,
|
hass,
|
||||||
cameraID,
|
cameraID,
|
||||||
@@ -588,10 +592,12 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
protected _getGroups(): DataGroupCollectionType {
|
protected _getGroups(): DataGroupCollectionType {
|
||||||
const groups: FrigateCardGroupData[] = [];
|
const groups: FrigateCardGroupData[] = [];
|
||||||
this.cameras?.forEach((cameraConfig, camera) => {
|
this.cameras?.forEach((cameraConfig, camera) => {
|
||||||
|
if (cameraConfig.camera_name !== 'birdseye') {
|
||||||
groups.push({
|
groups.push({
|
||||||
id: camera,
|
id: camera,
|
||||||
content: getCameraTitle(this.hass, cameraConfig),
|
content: getCameraTitle(this.hass, cameraConfig),
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return new DataSet(groups);
|
return new DataSet(groups);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user