Add support for pre-defined zoom/pan settings.
This commit is contained in:
1 parent
246dd7ff54
commit
7917e5c537
59 files changed
+1981
-638
No files matched your search
@@ -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>> {
|
||||
|
||||
Reference in new issue
Block a user