pypck 0.8.4__tar.gz → 0.8.5__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.
- {pypck-0.8.4/pypck.egg-info → pypck-0.8.5}/PKG-INFO +1 -1
- pypck-0.8.5/VERSION +1 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/connection.py +7 -12
- {pypck-0.8.4 → pypck-0.8.5}/pypck/timeout_retry.py +1 -4
- {pypck-0.8.4 → pypck-0.8.5/pypck.egg-info}/PKG-INFO +1 -1
- pypck-0.8.4/VERSION +0 -1
- {pypck-0.8.4 → pypck-0.8.5}/LICENSE +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/README.md +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/__init__.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/helpers.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/inputs.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/lcn_addr.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/lcn_defs.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/module.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/pck_commands.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck/request_handlers.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/SOURCES.txt +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/dependency_links.txt +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/not-zip-safe +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/top_level.txt +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/pyproject.toml +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/setup.cfg +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/tests/test_commands.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/tests/test_connection.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/tests/test_dyn_text.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/tests/test_messages.py +0 -0
- {pypck-0.8.4 → pypck-0.8.5}/tests/test_vars.py +0 -0
pypck-0.8.5/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.8.5
|
|
@@ -181,10 +181,8 @@ class PchkConnectionManager:
|
|
|
181
181
|
)
|
|
182
182
|
continue
|
|
183
183
|
await self.process_message(message)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
_LOGGER.debug("Read data loop closed")
|
|
184
|
+
finally:
|
|
185
|
+
_LOGGER.debug("Read data loop closed")
|
|
188
186
|
|
|
189
187
|
async def write_data_loop(self) -> None:
|
|
190
188
|
"""Processes queue and writes data."""
|
|
@@ -204,14 +202,11 @@ class PchkConnectionManager:
|
|
|
204
202
|
self.writer.write(data)
|
|
205
203
|
await self.writer.drain()
|
|
206
204
|
self.last_bus_activity = time.time()
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
await self.buffer.get()
|
|
213
|
-
|
|
214
|
-
_LOGGER.debug("Write data loop closed")
|
|
205
|
+
finally:
|
|
206
|
+
# empty the queue
|
|
207
|
+
while not self.buffer.empty():
|
|
208
|
+
await self.buffer.get()
|
|
209
|
+
_LOGGER.debug("Write data loop closed")
|
|
215
210
|
|
|
216
211
|
# Open/close connection, authentication & setup.
|
|
217
212
|
|
|
@@ -65,10 +65,7 @@ class TimeoutRetryHandler:
|
|
|
65
65
|
async def done(self) -> None:
|
|
66
66
|
"""Signal the completion of the TimeoutRetryHandler."""
|
|
67
67
|
if self.timeout_loop_task is not None:
|
|
68
|
-
|
|
69
|
-
await self.timeout_loop_task
|
|
70
|
-
except asyncio.CancelledError:
|
|
71
|
-
pass
|
|
68
|
+
await self.timeout_loop_task
|
|
72
69
|
|
|
73
70
|
async def cancel(self) -> None:
|
|
74
71
|
"""Must be called when a response (requested or not) is received."""
|
pypck-0.8.4/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.8.4
|
|
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
|