mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 21:02:20 +01:00
Ruff format for CI (#8276)
This commit is contained in:
committed by
GitHub
parent
31e90e5544
commit
3020083564
@@ -1223,8 +1223,7 @@ def subscribe_topic(value):
|
||||
if index != len(value) - 1:
|
||||
# If there are multiple wildcards, this will also trigger
|
||||
raise Invalid(
|
||||
"Multi-level wildcard must be the last "
|
||||
"character in the topic filter."
|
||||
"Multi-level wildcard must be the last character in the topic filter."
|
||||
)
|
||||
if len(value) > 1 and value[index - 1] != "/":
|
||||
raise Invalid("Multi-level wildcard must be after a topic level separator.")
|
||||
|
Reference in New Issue
Block a user