Mercurial > code > home > repos > homeauto
changeset 560:3501410e4cc7
also pass topic as str at publish
Ignore-this: ae4519416b4c4a29db44e9569b60edd
author | drewp@bigasterisk.com |
---|---|
date | Wed, 01 May 2019 00:09:23 -0700 |
parents | 9294c00edbf7 |
children | eca250fd66c7 |
files | lib/mqtt_client/mqtt_client.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/mqtt_client/mqtt_client.py Wed May 01 00:07:13 2019 -0700 +++ b/lib/mqtt_client/mqtt_client.py Wed May 01 00:09:23 2019 -0700 @@ -47,7 +47,7 @@ log.warn("publish failed: %s", failure.getErrorMessage()) return failure - return self.protocol.publish(topic=bytearray(topic), qos=0, + return self.protocol.publish(topic=topic.decode('utf-8'), qos=0, message=bytearray(msg)).addErrback(_logFailure)