From 95625a401df30a302aa898d0cb6473821b71dbcc Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 1 Apr 2021 21:33:31 +0200 Subject: [PATCH] Skip MQTT message if it has no content [closes #184] --- platypush/backend/zigbee/mqtt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/backend/zigbee/mqtt.py b/platypush/backend/zigbee/mqtt.py index 774bbc3fc..ad5518da5 100644 --- a/platypush/backend/zigbee/mqtt.py +++ b/platypush/backend/zigbee/mqtt.py @@ -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: