Fix MQTT topic
This commit is contained in:
parent
17a22dfb1b
commit
8b4878a226
|
@ -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),
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue