mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Improve MQTT warning message on illegal discovery topic (#76545)
This commit is contained in:
parent
19295d33ba
commit
acaa20cabe
@ -106,7 +106,10 @@ async def async_start( # noqa: C901
|
|||||||
if not (match := TOPIC_MATCHER.match(topic_trimmed)):
|
if not (match := TOPIC_MATCHER.match(topic_trimmed)):
|
||||||
if topic_trimmed.endswith("config"):
|
if topic_trimmed.endswith("config"):
|
||||||
_LOGGER.warning(
|
_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
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user