File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
homeassistant/components/pi_hole Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -129,10 +129,16 @@ async def async_update_data() -> None:
129129 raise ConfigEntryAuthFailed
130130 except HoleError as err :
131131 if str (err ) == "Authentication failed: Invalid password" :
132- raise ConfigEntryAuthFailed from err
133- raise UpdateFailed (f"Failed to communicate with API: { err } " ) from err
132+ raise ConfigEntryAuthFailed (
133+ f"Pi-hole { name } at host { host } , reported an invalid password"
134+ ) from err
135+ raise UpdateFailed (
136+ f"Pi-hole { name } at host { host } , update failed with HoleError: { err } "
137+ ) from err
134138 if not isinstance (api .data , dict ):
135- raise ConfigEntryAuthFailed
139+ raise ConfigEntryAuthFailed (
140+ f"Pi-hole { name } at host { host } , returned an unexpected response: { api .data } , assuming authentication failed"
141+ )
136142
137143 coordinator = DataUpdateCoordinator (
138144 hass ,
You can’t perform that action at this time.
0 commit comments