From dabef75b752370640fb8bc5f392bac5a32036d20 Mon Sep 17 00:00:00 2001 From: Vadim Tkachenko Date: Thu, 2 Nov 2023 22:54:57 -0700 Subject: [PATCH] Bugfix: now returning correct address (#292) --- .../java/net/sf/dz3r/device/mqtt/v2/AbstractMqttCqrsSwitch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dz3r-mqtt/src/main/java/net/sf/dz3r/device/mqtt/v2/AbstractMqttCqrsSwitch.java b/dz3r-mqtt/src/main/java/net/sf/dz3r/device/mqtt/v2/AbstractMqttCqrsSwitch.java index fb20344ea..7955fba91 100644 --- a/dz3r-mqtt/src/main/java/net/sf/dz3r/device/mqtt/v2/AbstractMqttCqrsSwitch.java +++ b/dz3r-mqtt/src/main/java/net/sf/dz3r/device/mqtt/v2/AbstractMqttCqrsSwitch.java @@ -60,6 +60,6 @@ protected final Boolean translateCommand(Boolean command) { @Override public MqttMessageAddress getAddress() { - return null; + return new MqttMessageAddress(mqttAdapter.getAddress(), rootTopic); } }