forked from home-assistant/core
Run nuki bidge.info() on executor (#58345)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
@@ -41,7 +41,7 @@ async def validate_input(hass, data):
|
|||||||
DEFAULT_TIMEOUT,
|
DEFAULT_TIMEOUT,
|
||||||
)
|
)
|
||||||
|
|
||||||
info = bridge.info()
|
info = await hass.async_add_executor_job(bridge.info)
|
||||||
except InvalidCredentialsException as err:
|
except InvalidCredentialsException as err:
|
||||||
raise InvalidAuth from err
|
raise InvalidAuth from err
|
||||||
except RequestException as err:
|
except RequestException as err:
|
||||||
|
Reference in New Issue
Block a user