fix: Folders should be overrideable (#2198)

- Closes #2196
This commit is contained in:
Dermot Duffy
2025-10-04 16:13:11 -07:00
committed by GitHub
parent 78dee9194f
commit af53c66cd5
2 changed files with 41 additions and 2 deletions
+6 -1
View File
@@ -119,7 +119,12 @@ export const transformPathURLToPathArray = (
};
const haFolderConfigSchema = z.object({
url: z.string().transform(transformPathURLToPathArray).optional(),
url: z
.string()
.transform(transformPathURLToPathArray)
// See: https://github.com/dermotduffy/advanced-camera-card/issues/2196
.or(haFolderPathComponentSchema.array().min(1))
.optional(),
path: haFolderPathComponentSchema.array().nonempty().optional(),
});
export type HAFolderConfig = z.infer<typeof haFolderConfigSchema>;