mirror of
https://github.com/home-assistant/core.git
synced 2025-11-04 08:29:37 +00:00
Fix can not typo (#87254)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user