Fix authlib version constraint required by point (#97228)

This commit is contained in:
Jan-Philipp Benecke 2023-07-27 08:54:20 +02:00 committed by GitHub
parent b31cfe0b24
commit 55beb26190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 11 deletions

View File

@ -97,9 +97,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
token_saver=token_saver,
)
try:
# pylint: disable-next=fixme
# TODO Remove authlib constraint when refactoring this code
await session.ensure_active_token()
# the call to user() implicitly calls ensure_active_token() in authlib
await session.user()
except ConnectTimeout as err:
_LOGGER.debug("Connection Timeout")
raise ConfigEntryNotReady from err

View File

@ -121,10 +121,6 @@ python-socketio>=4.6.0,<5.0
# https://github.com/home-assistant/core/pull/67046
multidict>=6.0.2
# Required for compatibility with point integration - ensure_active_token
# https://github.com/home-assistant/core/pull/68176
authlib<1.0
# Version 2.0 added typing, prevent accidental fallbacks
backoff>=2.0

View File

@ -123,10 +123,6 @@ python-socketio>=4.6.0,<5.0
# https://github.com/home-assistant/core/pull/67046
multidict>=6.0.2
# Required for compatibility with point integration - ensure_active_token
# https://github.com/home-assistant/core/pull/68176
authlib<1.0
# Version 2.0 added typing, prevent accidental fallbacks
backoff>=2.0