From 272b11849e3e4780741fd39e2ebb52bd1d437b89 Mon Sep 17 00:00:00 2001 From: Amund Isaksen <31344542+Teddy-1000@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:59:58 +0100 Subject: [PATCH] Update send_mqtt.py Fix if test for adding trailing "/" --- ingest/api/send_mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingest/api/send_mqtt.py b/ingest/api/send_mqtt.py index c70714b6..3b351b74 100644 --- a/ingest/api/send_mqtt.py +++ b/ingest/api/send_mqtt.py @@ -8,7 +8,7 @@ if "MQTT_TOPIC_PREPEND" in os.environ: mqtt_topic_prepend = os.getenv("MQTT_TOPIC_PREPEND", "") - mqtt_topic_prepend = mqtt_topic_prepend if not mqtt_topic_prepend.endswith("/") else mqtt_topic_prepend + "/" + mqtt_topic_prepend = mqtt_topic_prepend if mqtt_topic_prepend.endswith("/") else mqtt_topic_prepend + "/" def connect_mqtt(mqtt_conf: dict):