Parcourir la source

Re-raise on Dbus error after handling disconnect

J. Nick Koston il y a 2 ans
Parent
commit
6284b76618
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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(