diff --git a/midealocal/device.py b/midealocal/device.py index ad15bf18..26350d44 100644 --- a/midealocal/device.py +++ b/midealocal/device.py @@ -212,6 +212,7 @@ def connect(self) -> bool: self._socket.connect((self._ip_address, self._port)) _LOGGER.debug("[%s] Connected", self._device_id) connected = True + break except TimeoutError: _LOGGER.debug("[%s] Connection timed out", self._device_id) except OSError: