]> git.basschouten.com Git - openhab-addons.git/commitdiff
[openhabcloud] Add the missing configuration parameter for NOT_EXTENDED actions ...
authorjimtng <2554958+jimtng@users.noreply.github.com>
Tue, 27 Aug 2024 11:00:49 +0000 (21:00 +1000)
committerGitHub <noreply@github.com>
Tue, 27 Aug 2024 11:00:49 +0000 (13:00 +0200)
* [openhabcloud] Add the missing configuration parameter for NOT_EXTENDED actions

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/actions/NotificationActionTypeProvider.java

index 311f05cacecbb99ec7ab62d3862c8b84045ab411..e9ac32679aed5645b612536f3f1888c28ff11627 100644 (file)
@@ -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));