浏览代码

Re-raise on Dbus error after handling disconnect (#83)

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

+ 1 - 0
switchbot/devices/device.py

@@ -238,6 +238,7 @@ class SwitchbotDevice:
                 ex,
             )
             await self._execute_disconnect()
+            raise
         except BleakError as ex:
             # Disconnect so we can reset state and try again
             _LOGGER.debug(