Daniel Høyer Iversen 5 năm trước cách đây
mục cha
commit
800e284cd4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      switchbot/__init__.py

+ 1 - 1
switchbot/__init__.py

@@ -32,7 +32,7 @@ class Switchbot:
             _LOGGER.debug("Connecting")
             self._device = bluepy.btle.Peripheral(self._mac,
                                                   bluepy.btle.ADDR_TYPE_RANDOM)
-         except bluepy.btle.BTLEException:
+        except bluepy.btle.BTLEException:
             _LOGGER.error("Failed to connect to switchmate", exc_info=True)
             return False
         return True