[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 <jcode@tanagra.id.au>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
jimtng 2024-08-27 21:00:49 +10:00 committed by Ciprian Pascu
parent 8589dbdc67
commit 6a98dd4615

View 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));