mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[nikohomecontrol] Fix deprecated MQTT transport call (#8577)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
9780cd9b5b
commit
aa3f73d423
@ -229,7 +229,7 @@ public class NhcMqttConnection2 implements MqttActionCallback {
|
||||
|
||||
if (isConnected()) {
|
||||
logger.debug("Niko Home Control: publish {}, {}", topic, payload);
|
||||
connection.publish(topic, payload.getBytes());
|
||||
connection.publish(topic, payload.getBytes(), connection.getQos(), false);
|
||||
} else {
|
||||
logger.debug("Niko Home Control: cannot publish, not subscribed to connection messages");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user