Fix can not
typo (#87254)
This commit is contained in:
parent
b8a1f87073
commit
810367b757
27 changed files with 35 additions and 35 deletions
|
@ -108,7 +108,7 @@ def valid_publish_topic(topic: Any) -> str:
|
|||
"""Validate that we can publish using this MQTT topic."""
|
||||
validated_topic = valid_topic(topic)
|
||||
if "+" in validated_topic or "#" in validated_topic:
|
||||
raise vol.Invalid("Wildcards can not be used in topic names")
|
||||
raise vol.Invalid("Wildcards cannot be used in topic names")
|
||||
return validated_topic
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue