Add unittest coverage for engine-factory.

This commit is contained in:
Dermot Duffy
2023-04-04 21:55:52 -07:00
parent 5cd5809094
commit 7071f2ff63
7 changed files with 1082 additions and 15 deletions
-4
View File
@@ -58,10 +58,6 @@ export class CameraManagerEngineFactory {
hass: HomeAssistant,
cameraConfig: CameraConfig,
): Promise<Engine | null> {
if (!cameraConfig) {
return null;
}
let engine: Engine | null = null;
if (cameraConfig.engine === 'frigate') {
engine = Engine.Frigate;