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 -1
View File
@@ -189,7 +189,8 @@ export class CameraManager {
camerasConfig.some((config) => hasAutoTriggers(config))
) {
// ... then we need to populate the entity cache by fetching all entities
// from Home Assistant.
// from Home Assistant. Do this once upfront, to avoid each camera doing
// it.
await entityRegistryManager.fetchEntityList(hass);
}