Add support for pre-defined zoom/pan settings.

This commit is contained in:
Dermot Duffy
2024-04-27 14:55:38 -07:00
parent 246dd7ff54
commit 7917e5c537
59 changed files with 1981 additions and 638 deletions
+5 -5
View File
@@ -128,10 +128,6 @@ export class CameraManager {
this._store = options?.store ?? new CameraManagerStore();
}
public async reset(): Promise<void> {
await this._store.reset();
}
public async initializeCamerasFromConfig(): Promise<boolean> {
const config = this._api.getConfigManager().getConfig();
const hass = this._api.getHASSManager().getHASS();
@@ -149,7 +145,7 @@ export class CameraManager {
);
const resetAndInitialize = async () => {
await this.reset();
await this._reset();
await this._initializeCameras(cameras);
};
@@ -165,6 +161,10 @@ export class CameraManager {
return true;
}
protected async _reset(): Promise<void> {
await this._store.reset();
}
protected async _getEnginesForCameras(
camerasConfig: CamerasConfig,
): Promise<Map<CameraConfig, CameraManagerEngine>> {