fix: harden widget error feedback

This commit is contained in:
Thomas Camlong committed 2026-08-02 17:34:52 +02:00
1 parent f0d8e97f8d
commit 5010ecf188
5 files changed
+29 -8

No files matched your search

@@ -1,4 +1,4 @@
import { IconBinaryTree } from "@tabler/icons-react";
import { IconBinaryTree, IconServerOff } from "@tabler/icons-react";
import { getIntegrationKindsByCategory } from "@homarr/definitions";
@@ -22,4 +22,10 @@ export const { definition, componentLoader } = createWidgetDefinition("smartHome
}));
},
supportedIntegrations: getIntegrationKindsByCategory("smartHomeServer"),
errors: {
INTERNAL_SERVER_ERROR: {
icon: IconServerOff,
message: (t) => t("widget.smartHome-entityState.error.loadFailed"),
},
},
}).withDynamicImport(() => import("./component"));