mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-19 00:20:44 +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'])
|
_LOGGER.info('webhook code: %s', data['code'])
|
||||||
|
|
||||||
return web.Response(
|
return web.Response(
|
||||||
body=oauth_redirect_page(
|
body=await oauth_redirect_page(
|
||||||
hass.config.language, 'success'), content_type='text/html')
|
hass.config.language, 'success'), content_type='text/html')
|
||||||
|
|
||||||
except MIoTConfigError:
|
except MIoTConfigError:
|
||||||
return web.Response(
|
return web.Response(
|
||||||
body=oauth_redirect_page(hass.config.language, 'fail'),
|
body=await oauth_redirect_page(hass.config.language, 'fail'),
|
||||||
content_type='text/html')
|
content_type='text/html')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user