Fix can not typo (#87254)

This commit is contained in:
epenet 2023-02-03 11:37:16 +01:00 committed by GitHub
parent b8a1f87073
commit 810367b757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 35 additions and 35 deletions

View file

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