Add missing log message for error resolving OAuth token (#107606)

pull/110274/head
deosrc 2024-02-11 13:07:54 +00:00 committed by GitHub
parent 2e0ee11de5
commit e38cb01d81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ class AbstractOAuth2FlowHandler(config_entries.ConfigFlow, metaclass=ABCMeta):
_LOGGER.error("Timeout resolving OAuth token: %s", err)
return self.async_abort(reason="oauth_timeout")
except (ClientResponseError, ClientError) as err:
_LOGGER.error("Error resolving OAuth token: %s", err)
if (
isinstance(err, ClientResponseError)
and err.status == HTTPStatus.UNAUTHORIZED