Daniel Høyer Iversen 5 年之前
父節點
當前提交
4048f7e457
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      switchbot/__init__.py

+ 1 - 1
switchbot/__init__.py

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