Browse Source

Small typing cleanups for verify_encryption_key (#280)

J. Nick Koston 3 months ago
parent
commit
f4b090efc9
1 changed files with 2 additions and 2 deletions
  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