diff --git a/custom_components/hive/__init__.py b/custom_components/hive/__init__.py index 071b7c7..749b263 100755 --- a/custom_components/hive/__init__.py +++ b/custom_components/hive/__init__.py @@ -11,6 +11,7 @@ from apyhiveapi import Auth, Hive from apyhiveapi.helper.hive_exceptions import ( HiveConnectionError, + HiveInvalidDeviceAuthentication, HiveReauthRequired, HiveUnknownConfiguration, ) @@ -50,8 +51,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: HiveConfigEntry) -> bool except HiveConnectionError as error: _LOGGER.error("Could not fetch devices from Hive: %s", error) raise ConfigEntryNotReady from error - except (HiveReauthRequired, HiveUnknownConfiguration) as err: - raise ConfigEntryAuthFailed from err + except ( + HiveReauthRequired, + HiveUnknownConfiguration, + HiveInvalidDeviceAuthentication, + ) as err: device_registry = dr.async_get(hass) device_registry.async_get_or_create(