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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zcc-helper
3
- Version: 3.2.dev8
3
+ Version: 3.2.dev9
4
4
  Summary: ZIMI ZCC helper module
5
5
  Home-page: UNKNOWN
6
6
  Author: Mark Hannon
@@ -9,4 +9,4 @@ APP_ID = 'ZvWqWJQB'
9
9
  APP_TOKEN = '3422ecbb-cf6a-404c-b3dc-2023dd213535'
10
10
 
11
11
  NAME = 'zcc-helper'
12
- VERSION = '3.2dev8'
12
+ VERSION = '3.2dev9'
@@ -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
- self.logger.error('Existing socket closed')
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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zcc-helper
3
- Version: 3.2.dev8
3
+ Version: 3.2.dev9
4
4
  Summary: ZIMI ZCC helper module
5
5
  Home-page: UNKNOWN
6
6
  Author: Mark Hannon
File without changes
File without changes
File without changes
File without changes