Переглянути джерело

Re-raise on Dbus error after handling disconnect

J. Nick Koston 1 рік тому
батько
коміт
6284b76618
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(