Skip MQTT message if it has no content [closes #184]

This commit is contained in:
Fabio Manganiello 2021-04-01 21:33:31 +02:00
parent a147a4d37a
commit 95625a401d

View file

@ -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: