feat: Add support for Frigate reviews / detections [initial PR] (#2315)
- Add support for Frigate reviews / detections. - Add support for GenAI metadata. - Significant internal refactor to more flexible "UnifiedQuery" to allow mixing cameras with simple metadata and review metadata (e.g. a timeline view of a Frigate camera with reviews, and a Reolink camera with simple metadata). - Add support for folder media as camera media. There are a few more PRs to commit prior to this going live, but commiting this for now due to the scale of the change. BREAKING CHANGE: `media_type` and `events_type` are retired under `live`, `viewer` and `timeline` configuration sections, instead media type is associated (once) with the camera under `media`.
This commit is contained in:
@@ -70,10 +70,11 @@ export class AdvancedCameraCardSelect extends ScopedRegistryHost(LitElement) {
|
||||
const initialValueSet = this.value === null;
|
||||
this.value = value;
|
||||
|
||||
// The underlying gr-select element will call on the first first value set
|
||||
// The underlying gr-select element will call on the first value set
|
||||
// (even when the user has not interacted with the control). Do not
|
||||
// dispatch events for this.
|
||||
if (!initialValueSet) {
|
||||
// dispatch events for this UNLESS the value is actually non-empty
|
||||
// (indicating a user selection).
|
||||
if (!initialValueSet || (Array.isArray(value) ? value.length : !!value)) {
|
||||
fireAdvancedCameraCardEvent(this, 'select:change', value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user