fix usage

This commit is contained in:
Feng Wang 2025-01-11 14:04:06 +08:00
parent 2f0c2278cc
commit 2f804421cf

View File

@ -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')