mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 10:48:01 +02:00
Fix typo in cv.url_no_path (#129402)
This commit is contained in:
@ -874,7 +874,7 @@ def url_no_path(value: Any) -> str:
|
|||||||
url_in = url(value)
|
url_in = url(value)
|
||||||
|
|
||||||
if urlparse(url_in).path not in ("", "/"):
|
if urlparse(url_in).path not in ("", "/"):
|
||||||
raise vol.Invalid("url it not allowed to have a path component")
|
raise vol.Invalid("url is not allowed to have a path component")
|
||||||
|
|
||||||
return url_in
|
return url_in
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user