[mqtt] Fix typos in action label (#18116)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
4.3.x
jimtng 2025-01-18 01:42:56 +10:00 committed by Leo Siepel
parent 548e3f6f20
commit 0f5bfe9a8c
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public class MQTTActions implements ThingActions {
public void publishMQTT(
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") @Nullable final String value,
@ActionInput(name = "retain", label = "@text/actionInputRetainlabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
@ActionInput(name = "retain", label = "@text/actionInputRetainLabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
if (value == null) {
logger.debug("skipping MQTT publishing to topic '{}' due to null value.", topic);
return;
@ -78,7 +78,7 @@ public class MQTTActions implements ThingActions {
public void publishMQTT(
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") final byte[] value,
@ActionInput(name = "retain", label = "@text/actionInputRetainlabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
@ActionInput(name = "retain", label = "@text/actionInputRetainLabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
AbstractBrokerHandler brokerHandler = handler;
if (brokerHandler == null) {
logger.warn("MQTT Action service ThingHandler is null!");