Use entity class attributes for ambiclimate (#52521)

* Use entity class attributes for ambiclimate

* tweak

* move some stuff
This commit is contained in:
Robert Hillis 2021-07-05 01:51:10 -04:00 committed by GitHub
parent abc9b01ede
commit 3a2a688170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 76 deletions

View file

@ -139,7 +139,7 @@ class AmbiclimateAuthCallbackView(HomeAssistantView):
url = AUTH_CALLBACK_PATH
name = AUTH_CALLBACK_NAME
async def get(self, request):
async def get(self, request) -> str:
"""Receive authorization token."""
code = request.query.get("code")
if code is None: