Mercurial > code > home > repos > homeauto
changeset 1363:3cf19717cb6f
also pass topic as str at publish
Ignore-this: ae4519416b4c4a29db44e9569b60edd
darcs-hash:4c19d5e698fe888fbf580c9fa4101564056ddeda
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 01 May 2019 00:09:23 -0700 |
parents | 8642ed427607 |
children | 35dcf36bf395 |
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)