Skip to content

Commit 54bebb3

Browse files
authored
[mqtt] Set distinct action labels (openhab#18210)
This is so they can be differentiated in MainUI Signed-off-by: Jimmy Tanagra <[email protected]>
1 parent 90da7b9 commit 54bebb3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bundles/org.openhab.binding.mqtt/src/main/java/org/openhab/binding/mqtt/internal/action/MQTTActions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void publishMQTT(
5555
publishMQTT(topic, value, null);
5656
}
5757

58-
@RuleAction(label = "@text/actionLabel", description = "@text/actionDesc")
58+
@RuleAction(label = "@text/actionRetainLabel", description = "@text/actionRetainDesc")
5959
public void publishMQTT(
6060
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
6161
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") @Nullable final String value,
@@ -74,7 +74,7 @@ public void publishMQTT(
7474
publishMQTT(topic, value, null);
7575
}
7676

77-
@RuleAction(label = "@text/actionLabel", description = "@text/actionDesc")
77+
@RuleAction(label = "@text/actionRetainLabel", description = "@text/actionRetainDesc")
7878
public void publishMQTT(
7979
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
8080
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") final byte[] value,

bundles/org.openhab.binding.mqtt/src/main/resources/OH-INF/i18n/mqtt.properties

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ actionInputRetainLabel = Retain
9898
actionInputRetainDesc = Retain message
9999
actionLabel = publish an MQTT message
100100
actionDesc = Publishes a value to the given MQTT topic.
101+
actionRetainLabel = publish an MQTT message with given retain option
102+
actionRetainDesc = Publishes a value with given retain option to the given MQTT topic.
101103

102104
# thing status
103105

0 commit comments

Comments
 (0)