Implement UI for managing multiple models (#24023)

* Implement hardware detection and UI management

* Cleanup Frigate+ detection

* Don't count model as changed

* Fixes for audio map error

* Add descriptions

* Enforce that all model must exist

* Fix hardware picking

* Docs fixes

* WebUI cleanup

* Cleanup handling of scenes

* UI refinement

* Cleanup recommended UI

* test fixews
This commit is contained in:
Nicolas Mowen
2026-09-12 07:30:04 -06:00
parent 3f20209339
commit 27a40a507b
59 changed files with 2554 additions and 2587 deletions
+7
View File
@@ -736,6 +736,13 @@ export function applySchemaDefaults(
schema: RJSFSchema,
formData: Record<string, unknown> = {},
): Record<string, unknown> {
// An array section (models) carries its defaults on the item schema, not
// here. Spreading an array below would turn it into an object keyed by
// index, so hand it back untouched.
if (Array.isArray(formData)) {
return formData as unknown as Record<string, unknown>;
}
const result = { ...formData };
const schemaObj = schema as Record<string, unknown>;