From 2e3e61f4647c8169b228316ee966623fe3507883 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 18 Jan 2026 22:13:34 -1000 Subject: [PATCH] Update esphome/components/mqtt/mqtt_component.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- esphome/components/mqtt/mqtt_component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mqtt/mqtt_component.h b/esphome/components/mqtt/mqtt_component.h index 97234eedfc..713c8e808d 100644 --- a/esphome/components/mqtt/mqtt_component.h +++ b/esphome/components/mqtt/mqtt_component.h @@ -188,7 +188,7 @@ class MQTTComponent : public Component { /** Get this components state/command/... topic into a buffer. * - * @param buf The buffer to write to (must be at least DEFAULT_TOPIC_MAX_LEN). + * @param buf The buffer to write to (must be exactly MQTT_DEFAULT_TOPIC_MAX_LEN). * @param suffix The suffix/key such as "state" or "command". * @return StringRef pointing to the buffer with the topic. */