diff --git a/custom_components/robovac/tuyalocalapi.py b/custom_components/robovac/tuyalocalapi.py index 5c9e558..8c77926 100644 --- a/custom_components/robovac/tuyalocalapi.py +++ b/custom_components/robovac/tuyalocalapi.py @@ -831,7 +831,8 @@ class TuyaDevice: if self._connected: _LOGGER.debug("Incomplete read") elif isinstance(e, ConnectionResetError): - _LOGGER.debug("Connection reset") + _LOGGER.debug("Connection reset: {}".format(e)) + await self.async_disconnect() else: _LOGGER.debug("Received message from {}: {}".format(self, message))