diff --git a/get_data.py b/get_data.py index c35b94d..143288c 100644 --- a/get_data.py +++ b/get_data.py @@ -42,7 +42,7 @@ def send_to_mqtt(data: MQTTdata) -> None: msgs = [ { - "topic": f"sensors/home/{data['mac']}/tele/SENSOR", + "topic": f"tele/{data['mac']}/SENSOR", "payload": json.dumps(data), }, ]