Make payload attribute optional again for MQTT publish action (#37338)

This commit is contained in:
Jan Bouwhuis 2025-02-06 21:53:24 +01:00 committed by GitHub
parent 635d52b7bb
commit 63ffe5293e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1466,7 +1466,7 @@ The MQTT integration will register the `mqtt.publish` action, which allows publi
| Data attribute | Optional | Description |
| ---------------------- | -------- | ------------------------------------------------------------ |
| `topic` | no | Topic to publish payload to. |
| `payload` | no | Payload to publish. |
| `payload` | yes | Payload to publish. Will publish an empty payload when `payload` is omitted. |
| `evaluate_payload` | yes | If a `bytes` literal in `payload` should be evaluated to publish raw data. (default: false)|
| `qos` | yes | Quality of Service to use. (default: 0) |
| `retain` | yes | If message should have the retain flag set. (default: false) |