I was running into the 500 internal error issue like some others. I am on the latest version of HASSIO, 0.72.1. And I didn’t want to downgrade per one of the suggestions. Looking in the logs I found that the issue was with this line 201 data = request.GET, as the error said “‘function’ object has no attribute ‘get’”. Since I could get all the way to the authorization and had the codes, I hard coded the data into the following code to make it work and get past trying to grab the codes from the URL.
After you get the page with the 500 error, copy the CODE and STATE from the URL and replace it as listed below. Restart hassio from the command line (leaving your web pages open) and then refresh the authorization page. Click Continue on the original authorization popup, and you are now authorized. I’m sure a little tweaking of the request code will work, but I am not that familiar with Python.
#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='codefromurl', state='statefromurl')