Remove unnecessary entity fetches.

This commit is contained in:
Dermot Duffy
2023-03-04 12:54:22 -08:00
parent 072af6941d
commit 899fdbb842
6 changed files with 41 additions and 105 deletions
+2 -5
View File
@@ -85,7 +85,7 @@ import { CameraManagerEngineFactory } from './camera-manager/engine-factory.js';
import { log } from './utils/debug.js';
import { EntityRegistryManager } from './utils/ha/entity-registry/index.js';
import { EntityCache } from './utils/ha/entity-registry/cache.js';
import { Entity, ExtendedEntity } from './utils/ha/entity-registry/types.js';
import { Entity } from './utils/ha/entity-registry/types.js';
import { getAllDependentCameras } from './utils/camera.js';
/** A note on media callbacks:
@@ -214,10 +214,7 @@ class FrigateCard extends LitElement {
constructor() {
super();
this._entityRegistryManager = new EntityRegistryManager(
new EntityCache<Entity>(),
new EntityCache<ExtendedEntity>(),
);
this._entityRegistryManager = new EntityRegistryManager(new EntityCache());
}
/**