Fixed messages not arriving
This commit is contained in:
@@ -20,7 +20,7 @@ sensorschema = SensorSchema(many=False)
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@mqtt.on_message()
|
||||
@mqtt.on_topic(f"{config.MQTT_STATUS_TOPIC}/#")
|
||||
def handle_status_message(client, userdata, message):
|
||||
data = dict(
|
||||
topic=message.topic,
|
||||
|
||||
Reference in New Issue
Block a user