mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 14:19:03 +00:00
[config] Fix unfilled placeholder in dimensions() error message (#15498)
This commit is contained in:
@@ -1667,7 +1667,7 @@ def dimensions(value):
|
||||
match = re.match(r"\s*([0-9]+)\s*[xX]\s*([0-9]+)\s*", value)
|
||||
if not match:
|
||||
raise Invalid(
|
||||
"Invalid value '{}' for dimensions. Only WIDTHxHEIGHT is allowed."
|
||||
f"Invalid value '{value}' for dimensions. Only WIDTHxHEIGHT is allowed."
|
||||
)
|
||||
return dimensions([match.group(1), match.group(2)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user