lyric.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:homeassistant-config 作者: arsaboo 项目源码 文件源码
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.')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号