mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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:
parent
8589dbdc67
commit
6a98dd4615
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user