浏览代码

Small typing cleanups for verify_encryption_key (#280)

J. Nick Koston 3 月之前
父节点
当前提交
f4b090efc9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      switchbot/devices/device.py

+ 2 - 2
switchbot/devices/device.py

@@ -815,13 +815,13 @@ class SwitchbotEncryptedDevice(SwitchbotDevice):
         **kwargs: Any,
     ) -> bool:
         try:
-            device = cls(
+            switchbot_device = cls(
                 device, key_id=key_id, encryption_key=encryption_key, model=model
             )
         except ValueError:
             return False
         try:
-            info = await device.get_basic_info()
+            info = await switchbot_device.get_basic_info()
         except SwitchbotOperationError:
             return False