def get(self, request):
"""Handle a GET request."""
hass = request.app['hass']
data = request.GET
if 'code' not in data or 'state' not in data:
return self.json_message('Authentication failed, not the right '
'variables, try again.', HTTP_BAD_REQUEST)
self.lyric.authorization_code(code=data['code'], state=data['state'])
return self.json_message('OK! All good. Got the respons! You can close'
'this window now, and click << Continue >>'
'in the configurator.')
评论列表
文章目录