mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-16 14:40:43 +08:00
fix usage
This commit is contained in:
parent
2f0c2278cc
commit
2f804421cf
@ -1991,12 +1991,12 @@ async def _handle_oauth_webhook(hass, webhook_id, request):
|
||||
_LOGGER.info('webhook code: %s', data['code'])
|
||||
|
||||
return web.Response(
|
||||
body=oauth_redirect_page(
|
||||
body=await oauth_redirect_page(
|
||||
hass.config.language, 'success'), content_type='text/html')
|
||||
|
||||
except MIoTConfigError:
|
||||
return web.Response(
|
||||
body=oauth_redirect_page(hass.config.language, 'fail'),
|
||||
body=await oauth_redirect_page(hass.config.language, 'fail'),
|
||||
content_type='text/html')
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user