From 3f7c2913b642249b706c177dafd952e3e64a0ee3 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Thu, 11 Jul 2024 11:21:50 +0200 Subject: [PATCH] Revert "Remove `topic_template` option for mqtt publish service" (#33698) --- source/_integrations/mqtt.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_integrations/mqtt.markdown b/source/_integrations/mqtt.markdown index 9c2d1ee2aab..df9d2de9035 100644 --- a/source/_integrations/mqtt.markdown +++ b/source/_integrations/mqtt.markdown @@ -1106,6 +1106,7 @@ The MQTT integration will register the service `mqtt.publish` which allows publi | Service data attribute | Optional | Description | | ---------------------- | -------- | ------------------------------------------------------------ | | `topic` | no | Topic to publish payload to. | +| `topic_template` | no | Template to render as topic to publish payload to. | | `payload` | yes | Payload to publish. | | `payload_template` | yes | Template to render as payload value. | | `qos` | yes | Quality of Service to use. (default: 0) | @@ -1113,7 +1114,7 @@ The MQTT integration will register the service `mqtt.publish` which allows publi {% important %} -If providing a payload, you need to include either `payload` or `payload_template`, but not both. +You must include either `topic` or `topic_template`, but not both. If providing a payload, you need to include either `payload` or `payload_template`, but not both. {% endimportant %}