diff --git a/custom_components/dyson_local/config_flow.py b/custom_components/dyson_local/config_flow.py index 7aae917..7a2a226 100644 --- a/custom_components/dyson_local/config_flow.py +++ b/custom_components/dyson_local/config_flow.py @@ -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