From acaa20cabe316a9b325c3dd641fefb1aa59c8e43 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Wed, 10 Aug 2022 15:38:40 +0200 Subject: [PATCH] Improve MQTT warning message on illegal discovery topic (#76545) --- homeassistant/components/mqtt/discovery.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/mqtt/discovery.py b/homeassistant/components/mqtt/discovery.py index ebc3a170aeb..8a4c4d0c542 100644 --- a/homeassistant/components/mqtt/discovery.py +++ b/homeassistant/components/mqtt/discovery.py @@ -106,7 +106,10 @@ async def async_start( # noqa: C901 if not (match := TOPIC_MATCHER.match(topic_trimmed)): if topic_trimmed.endswith("config"): _LOGGER.warning( - "Received message on illegal discovery topic '%s'", topic + "Received message on illegal discovery topic '%s'. The topic contains " + "not allowed characters. For more information see " + "https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic", + topic, ) return