Improve MQTT warning message on illegal discovery topic (#76545)

This commit is contained in:
Jan Bouwhuis 2022-08-10 15:38:40 +02:00 committed by GitHub
parent 19295d33ba
commit acaa20cabe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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