Use less fancy camera condition matching.

This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent a15ea2af45
commit 55ca108a9b
4 changed files with 17 additions and 49 deletions
+2 -3
View File
@@ -222,10 +222,9 @@ export class FrigateCard extends LitElement {
*/
protected _generateConditionState(): void {
this._conditionState = {
view: this._view,
view: this._view?.view,
fullscreen: screenfull.isEnabled && screenfull.isFullscreen,
camera:
this._cameras && this._view ? this._cameras.get(this._view.camera) : undefined,
camera: this._view?.camera,
};
}