From 6a98dd4615fbea6e75772f345694b3e5f1e2e27f Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:00:49 +1000 Subject: [PATCH] [openhabcloud] Add the missing configuration parameter for NOT_EXTENDED actions (#17331) * [openhabcloud] Add the missing configuration parameter for NOT_EXTENDED actions Signed-off-by: Jimmy Tanagra Signed-off-by: Ciprian Pascu --- .../internal/actions/NotificationActionTypeProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/actions/NotificationActionTypeProvider.java b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/actions/NotificationActionTypeProvider.java index 311f05cacec..e9ac32679ae 100644 --- a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/actions/NotificationActionTypeProvider.java +++ b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/actions/NotificationActionTypeProvider.java @@ -57,7 +57,7 @@ public class NotificationActionTypeProvider implements ModuleTypeProvider { null, Visibility.VISIBLE, null, null); private static final ModuleType SEND_BROADCAST_NOTIFICATION_ACTION = new ActionType( - SendBroadcastNotificationActionHandler.TYPE_ID, getNotificationConfig(ConfigType.NOT_EXTENDED, true, null), + SendBroadcastNotificationActionHandler.TYPE_ID, getNotificationConfig(ConfigType.NOT_EXTENDED, false, null), "broadcast a notification", "Sends a notification to all devices of all users.", null, Visibility.VISIBLE, null, null); @@ -171,6 +171,9 @@ public class NotificationActionTypeProvider implements ModuleTypeProvider { .build()); } switch (type) { + case NOT_EXTENDED: + params.add(getMessageConfigParameter(locale)); + break; case EXTENDED: params.add(getMessageConfigParameter(locale)); params.add(getIconConfigParameter(locale));