pyotgw 2.2.1__tar.gz → 2.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyotgw-2.2.1 → pyotgw-2.2.2}/PKG-INFO +1 -1
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/connection.py +9 -7
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw.egg-info/PKG-INFO +1 -1
- {pyotgw-2.2.1 → pyotgw-2.2.2}/setup.py +1 -1
- {pyotgw-2.2.1 → pyotgw-2.2.2}/LICENSE +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/README.md +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/__init__.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/commandprocessor.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/messageprocessor.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/messages.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/protocol.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/pyotgw.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/status.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw/vars.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw.egg-info/SOURCES.txt +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw.egg-info/dependency_links.txt +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw.egg-info/requires.txt +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/pyotgw.egg-info/top_level.txt +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/setup.cfg +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_commandprocessor.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_connection.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_messageprocessor.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_messages.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_protocol.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_pyotgw.py +0 -0
- {pyotgw-2.2.1 → pyotgw-2.2.2}/tests/test_status.py +0 -0
|
@@ -131,22 +131,24 @@ class ConnectionManager: # pylint: disable=too-many-instance-attributes
|
|
|
131
131
|
)
|
|
132
132
|
return transport, protocol
|
|
133
133
|
|
|
134
|
-
except
|
|
134
|
+
except asyncio.TimeoutError as err:
|
|
135
135
|
if not isinstance(err, type(self._error)):
|
|
136
136
|
_LOGGER.error(
|
|
137
|
-
"
|
|
138
|
-
"Will keep trying.
|
|
137
|
+
"The serial device on %s is not responding. "
|
|
138
|
+
"Will keep trying.",
|
|
139
139
|
self._port,
|
|
140
|
-
err,
|
|
141
140
|
)
|
|
142
141
|
self._error = err
|
|
142
|
+
if protocol:
|
|
143
|
+
await protocol.cleanup()
|
|
143
144
|
|
|
144
|
-
except
|
|
145
|
+
except (serial.SerialException, OSError) as err:
|
|
145
146
|
if not isinstance(err, type(self._error)):
|
|
146
147
|
_LOGGER.error(
|
|
147
|
-
"
|
|
148
|
-
"Will keep trying.",
|
|
148
|
+
"Could not connect to serial device on %s. "
|
|
149
|
+
"Will keep trying. Reported error was: %s",
|
|
149
150
|
self._port,
|
|
151
|
+
err,
|
|
150
152
|
)
|
|
151
153
|
self._error = err
|
|
152
154
|
if protocol:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|