Skip to content

Commit

Permalink
Get the error type when connection fails (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotvezz authored Dec 2, 2023
1 parent 2238fce commit d8459f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dyson_local/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _callback(address: str) -> None:
except DysonInvalidCredential:
raise InvalidAuth
except DysonException as err:
_LOGGER.debug(f"Failed to connect to device: {err.__name__}, {err}")
_LOGGER.debug(f"Failed to connect to device: {type(err).__name__}, {err}")
raise CannotConnect


Expand Down

0 comments on commit d8459f2

Please sign in to comment.