[nikohomecontrol] Fix deprecated MQTT transport call (#8577)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2020-09-25 12:16:27 +02:00 committed by GitHub
parent 9780cd9b5b
commit aa3f73d423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}