From e163410735d395e589c2a8d0cc1e5a6c3fa68815 Mon Sep 17 00:00:00 2001 From: Laith-Budairi <48382142+Laith-Budairi@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:12:49 +0200 Subject: [PATCH] [x] Fix @ActionOutput annotations (#17673) Related to #17636 Signed-off-by: Laith Budairi --- .../org/openhab/binding/x/internal/action/XActions.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.x/src/main/java/org/openhab/binding/x/internal/action/XActions.java b/bundles/org.openhab.binding.x/src/main/java/org/openhab/binding/x/internal/action/XActions.java index 9c0cb1d6e72f5..00d8b1634f27f 100644 --- a/bundles/org.openhab.binding.x/src/main/java/org/openhab/binding/x/internal/action/XActions.java +++ b/bundles/org.openhab.binding.x/src/main/java/org/openhab/binding/x/internal/action/XActions.java @@ -41,7 +41,7 @@ public class XActions implements ThingActions { private @Nullable XHandler handler; @RuleAction(label = "@text/sendPostActionLabel", description = "@text/sendPostActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPost( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPost( @ActionInput(name = "text") @Nullable String text) { if (text == null) { logger.warn("Cannot send Post as text is missing."); @@ -58,7 +58,7 @@ public class XActions implements ThingActions { } @RuleAction(label = "@text/sendAttachmentPostActionLabel", description = "@text/sendAttachmentPostActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPostWithAttachment( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPostWithAttachment( @ActionInput(name = "text") @Nullable String text, @ActionInput(name = "url") @Nullable String urlString) { if (text == null) { logger.warn("Cannot send Post as text is missing."); @@ -79,7 +79,7 @@ public class XActions implements ThingActions { } @RuleAction(label = "@text/sendDirectMessageActionLabel", description = "@text/sendDirectMessageActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendDirectMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendDirectMessage( @ActionInput(name = "recipient") @Nullable String recipient, @ActionInput(name = "text") @Nullable String text) { if (recipient == null) {