forked from platypush/platypush
Skip MQTT message if it has no content [closes #184]
This commit is contained in:
parent
a147a4d37a
commit
95625a401d
1 changed files with 2 additions and 0 deletions
|
@ -229,6 +229,8 @@ class ZigbeeMqttBackend(MqttBackend):
|
|||
def handler(client, _, msg):
|
||||
topic = msg.topic[len(self.base_topic)+1:]
|
||||
data = msg.payload.decode()
|
||||
if not data:
|
||||
return
|
||||
|
||||
# noinspection PyBroadException
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue