Skip to content

Commit 37fd70b

Browse files
committed
Add Raises to validate docstring
1 parent 09cca94 commit 37fd70b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

custom_components/zaptec/validate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,13 @@ class InstallationConnectionDetails(BaseModel):
132132

133133

134134
def validate(data: Any, url: str) -> None:
135-
"""Validate the data."""
135+
"""
136+
Validate the data.
137+
138+
Raises:
139+
ValidationError: If data doesn't match the pydantic model associated with the url.
140+
141+
"""
136142

137143
for pat, re_pat, model in _URLS:
138144
# Mathes either the exact string or its regexp

0 commit comments

Comments
 (0)