Run nuki bidge.info() on executor (#58345)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Sagi Bernstein 2021-10-25 13:41:32 +03:00 committed by GitHub
parent ab66efba0e
commit 07f268de1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ async def validate_input(hass, data):
DEFAULT_TIMEOUT,
)
info = bridge.info()
info = await hass.async_add_executor_job(bridge.info)
except InvalidCredentialsException as err:
raise InvalidAuth from err
except RequestException as err: