From 084deb00a43a8fb50daf8ee37631f045af65b972 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Sat, 10 Feb 2024 15:41:50 +0100 Subject: [PATCH] Raise timeout exception on timeout --- RFXtrx/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RFXtrx/__init__.py b/RFXtrx/__init__.py index 0fbb612..220ecfa 100644 --- a/RFXtrx/__init__.py +++ b/RFXtrx/__init__.py @@ -1011,6 +1011,7 @@ def connect(self, timeout=None): self._thread.start() if not self._run_event.wait(timeout): self.close_connection() + raise TimeoutError() def _connect(self): try: