257 files

This commit is contained in:
Home Assistant Version Control
2026-10-02 16:06:24 +00:00
parent 7c55603942
commit c29f5cc088
258 changed files with 24621 additions and 3136 deletions
@@ -363,7 +363,7 @@ class DocumentsArchiveView(HomeAssistantView):
content = await self.hass.async_add_executor_job(file_field.file.read)
result = await import_documents_archive(self.hass, content)
if "error" in result:
return self.json_message(result["error"], HTTPStatus.BAD_REQUEST)
return self.json_message(result["error"], HTTPStatus.BAD_REQUEST, message_code=result.get("code"))
return self.json(result)