We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad881d8 commit 2899415Copy full SHA for 2899415
1 file changed
homeassistant/components/wallbox/coordinator.py
@@ -108,7 +108,9 @@ def _validate(wallbox: Wallbox) -> None:
108
wallbox.authenticate()
109
except requests.exceptions.HTTPError as wallbox_connection_error:
110
if wallbox_connection_error.response.status_code == 403:
111
- raise InvalidAuth from wallbox_connection_error
+ raise InvalidAuth(
112
+ translation_domain=DOMAIN, translation_key="invalid_auth"
113
+ ) from wallbox_connection_error
114
raise ConnectionError from wallbox_connection_error
115
116
0 commit comments