File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
22
ble_device_has_changed ,
23
23
establish_connection ,
24
24
)
25
+ from cryptography .hazmat .primitives .ciphers import Cipher , algorithms , modes
25
26
26
27
from ..api_config import SWITCHBOT_APP_API_BASE_URL , SWITCHBOT_APP_CLIENT_ID
27
28
from ..const import (
@@ -733,9 +734,7 @@ def __init__(
733
734
734
735
# Old non-async method preserved for backwards compatibility
735
736
@classmethod
736
- def retrieve_encryption_key (
737
- cls : SwitchbotBaseDevice , device_mac : str , username : str , password : str
738
- ):
737
+ def retrieve_encryption_key (cls , device_mac : str , username : str , password : str ):
739
738
async def async_fn ():
740
739
async with aiohttp .ClientSession () as session :
741
740
return await cls .async_retrieve_encryption_key (
@@ -746,7 +745,7 @@ async def async_fn():
746
745
747
746
@classmethod
748
747
async def async_retrieve_encryption_key (
749
- cls : SwitchbotBaseDevice ,
748
+ cls ,
750
749
session : aiohttp .ClientSession ,
751
750
device_mac : str ,
752
751
username : str ,
You can’t perform that action at this time.
0 commit comments