diff --git a/get_data.py b/get_data.py index 4917584..3cae87c 100644 --- a/get_data.py +++ b/get_data.py @@ -54,7 +54,7 @@ def send_to_mqtt(data: MQTTdata) -> None: "payload": data["battery"], }, { - "topic": "sensors/home/{data['mac']}/tele/SENSOR", + "topic": f"sensors/home/{data['mac']}/tele/SENSOR", "payload": json.dumps(data), }, ]