zcc-helper 3.2.dev8__tar.gz → 3.2.dev9__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.
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/PKG-INFO +1 -1
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/constants.py +1 -1
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/controller.py +6 -2
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc_helper.egg-info/PKG-INFO +1 -1
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/README.md +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/setup.cfg +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/setup.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/__init__.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/__main__.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/description.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/device.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/discovery.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/errors.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/protocol.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/socket.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/trace.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc/watchdog.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc.py +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc_helper.egg-info/SOURCES.txt +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc_helper.egg-info/dependency_links.txt +0 -0
- {zcc-helper-3.2.dev8 → zcc-helper-3.2.dev9}/zcc_helper.egg-info/top_level.txt +0 -0
|
@@ -318,11 +318,15 @@ class ControlPoint:
|
|
|
318
318
|
ControlPointProtocol.GATEWAY_PROPERTIES, None))
|
|
319
319
|
if response.get(ControlPointProtocol.ZCC_STATUS, None):
|
|
320
320
|
self.logger.error("ZCC status message\n%s", pformat(response))
|
|
321
|
+
await self.re_connect(reset=True)
|
|
321
322
|
|
|
322
|
-
async def re_connect(self):
|
|
323
|
+
async def re_connect(self, reset: bool = False):
|
|
323
324
|
'''Re-connect to a new socket and resend any queued messages.'''
|
|
324
325
|
|
|
325
|
-
|
|
326
|
+
if reset:
|
|
327
|
+
self.logger.error('Initiating new socket after existing socket reset')
|
|
328
|
+
else:
|
|
329
|
+
self.logger.error('Existing socket closed')
|
|
326
330
|
|
|
327
331
|
self.socket.unsubscribe(self)
|
|
328
332
|
self.socket.close()
|
|
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
|