From: 
Subject: Debian changes

The Debian packaging of python-sharkiq is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-sharkiq
    % cd python-sharkiq
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-sharkiq`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/sharkiq/ayla_api.py b/sharkiq/ayla_api.py
index 3e6ff4f..3e201e1 100644
--- a/sharkiq/ayla_api.py
+++ b/sharkiq/ayla_api.py
@@ -7,11 +7,12 @@
     - https://docs.aylanetworks.com/cloud-services/api-browser/
 """
 
+import asyncio
+
 import aiohttp
 import requests
 
 from auth0.authentication import GetToken
-from auth0.asyncify import asyncify
 from datetime import datetime, timedelta
 from typing import Dict, List, Optional
 from .auth0 import Auth0Client
@@ -282,9 +283,12 @@ async def _legacy_cookie_sign_in(self, ayla_client: aiohttp.ClientSession, force
         """
         try:
             if force_auth0_sdk or self.europe:
-                AsyncGetToken = asyncify(GetToken)
-                get_token = AsyncGetToken(EU_AUTH0_HOST if self.europe else AUTH0_HOST, EU_AUTH0_CLIENT_ID if self.europe else AUTH0_CLIENT_ID)
-                auth_result = await get_token.login_async(
+                get_token = GetToken(
+                    EU_AUTH0_HOST if self.europe else AUTH0_HOST,
+                    EU_AUTH0_CLIENT_ID if self.europe else AUTH0_CLIENT_ID,
+                )
+                auth_result = await asyncio.to_thread(
+                    get_token.login,
                     username=self._email,
                     password=self._password,
                     grant_type='password',
