1
0
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:
Katherine Whitlock
2025-02-19 14:24:43 -05:00
committed by GitHub
parent 31e90e5544
commit 3020083564
21 changed files with 75 additions and 87 deletions

View File

@@ -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.")