Browse Source

Re-raise on Dbus error after handling disconnect

J. Nick Koston 2 năm trước cách đây
mục cha
commit
6284b76618
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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(