J. Nick Koston 3 năm trước cách đây
mục cha
commit
b940c789dd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      switchbot/devices/device.py

+ 1 - 1
switchbot/devices/device.py

@@ -66,7 +66,7 @@ class SwitchbotDevice:
             self._password_encoded = "%08x" % (
                 binascii.crc32(password.encode("ascii")) & 0xFFFFFFFF
             )
-        self._cached_services: BleakGATTServiceCollection | None
+        self._cached_services: BleakGATTServiceCollection | None = None
 
     def _commandkey(self, key: str) -> str:
         """Add password to key if set."""