qolsys-controller 0.0.35__py3-none-any.whl → 0.0.37__py3-none-any.whl

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.

Potentially problematic release.


This version of qolsys-controller might be problematic. Click here for more details.

@@ -9,7 +9,6 @@ from .state import QolsysState
9
9
 
10
10
  LOGGER = logging.getLogger(__name__)
11
11
 
12
-
13
12
  class QolsysController:
14
13
 
15
14
  def __init__(self) -> None:
@@ -7,8 +7,8 @@ import logging
7
7
  import random
8
8
  import ssl
9
9
  import uuid
10
- from pathlib import Path
11
10
 
11
+ import aiofiles
12
12
  import aiomqtt
13
13
 
14
14
  from .enum import PartitionAlarmState, PartitionSystemStatus
@@ -359,6 +359,7 @@ class QolsysPluginRemote(QolsysPlugin):
359
359
 
360
360
  except asyncio.CancelledError:
361
361
  LOGGER.debug("Stoping Certificate Exchange Server")
362
+ await self.certificate_exchange_server.wait_closed()
362
363
  LOGGER.debug("Stoping mDNS Service Discovery")
363
364
  await mdns_server.stop_mdns()
364
365
 
@@ -402,8 +403,8 @@ class QolsysPluginRemote(QolsysPlugin):
402
403
  await writer.drain()
403
404
 
404
405
  # Sending CSR File to panel
405
- with Path.open(self._pki.csr_file_path, "rb") as file:
406
- content = file.read()
406
+ async with aiofiles.open(self._pki.csr_file_path, mode='rb') as f:
407
+ content = await f.read()
407
408
  LOGGER.debug("Sending to Panel: [CSR File Content]")
408
409
  writer.write(content)
409
410
  writer.write(b"sent")
@@ -415,22 +416,22 @@ class QolsysPluginRemote(QolsysPlugin):
415
416
  if (received_panel_mac and not received_signed_client_certificate and not received_qolsys_cer):
416
417
  request = await reader.readuntil(b"sent")
417
418
  if request.endswith(b"sent"):
418
- request = request[:-5]
419
+ request = request[:-4]
419
420
 
420
421
  LOGGER.debug("Saving [Signed Client Certificate]")
421
- with Path.open(self._pki.secure_file_path, "wb") as f:
422
- f.write(request)
422
+ async with aiofiles.open(self._pki.secure_file_path, mode="wb") as f:
423
+ await f.write(request)
423
424
  received_signed_client_certificate = True
424
425
 
425
426
  # Read qolsys certificate data
426
427
  if (received_panel_mac and received_signed_client_certificate and not received_qolsys_cer):
427
428
  request = await reader.readuntil(b"sent")
428
429
  if request.endswith(b"sent"):
429
- request = request[:-5]
430
+ request = request[:-4]
430
431
 
431
432
  LOGGER.debug("Saving [Qolsys Certificate]")
432
- with Path.open(self._pki.qolsys_cer_file_path, "wb") as f:
433
- f.write(request)
433
+ async with aiofiles.open(self._pki.qolsys_cer_file_path, mode="wb") as f:
434
+ await f.write(request)
434
435
  received_qolsys_cer = True
435
436
  continue_pairing = False
436
437
 
@@ -851,7 +852,7 @@ class QolsysPluginRemote(QolsysPlugin):
851
852
  LOGGER.debug("MQTT: Sending zwave_doorlock_set command: EXPERIMENTAL")
852
853
  LOGGER.debug("MQTT: Sending zwave_doorlock_set command - Node(%s) - Locked(%s)",node_id,locked)
853
854
 
854
- command = 68
855
+ command = 98
855
856
 
856
857
  # 0 unlocked
857
858
  # 255 lockeck
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qolsys-controller
3
- Version: 0.0.35
3
+ Version: 0.0.37
4
4
  Summary: A Python module that emulates a virtual IQ Remote device, enabling full local control of a Qolsys IQ Panel
5
5
  Project-URL: Homepage, https://github.com/EHylands/QolsysController
6
6
  Project-URL: Issues, https://github.com/EHylands/QolsysController/issues
@@ -1,5 +1,5 @@
1
1
  qolsys_controller/__init__.py,sha256=TkjMFBP9VNyGLC84JQZ_tTeD8nJImkGgPMkQFGr2428,88
2
- qolsys_controller/controller.py,sha256=rLjMMZBJCPqrE9oY_vZRMFZAsIm5UlXyRtUao3F4Qr0,1309
2
+ qolsys_controller/controller.py,sha256=ssmuRSXXmNW2lGh_G0rzJMqdjBzg1T0gdIo3TFFWjIQ,1308
3
3
  qolsys_controller/enum.py,sha256=nxlZEfKqbYFGzqiZnSV81jnNDajzioDcpWXUoZup8nQ,3463
4
4
  qolsys_controller/enum_zwave.py,sha256=q10YtzOXW3wfYORU1o7_WhTfb3GpC_xstjHzQAitHJ0,740
5
5
  qolsys_controller/errors.py,sha256=Z_eVJ4XqWucdn1lu_83DPnEKEG4L3FMfjhz5iO6RuBM,1176
@@ -11,7 +11,7 @@ qolsys_controller/partition.py,sha256=ZRSWDqXE1aPlTvxwSbvp28OyOXgTYOUH73zOtZFHII
11
11
  qolsys_controller/pki.py,sha256=_e0tiNF8Hypb37cHr7x8yqUZDaqbzRzP45AitTtmzk4,8663
12
12
  qolsys_controller/plugin.py,sha256=Qh0irFbuw9R2QF3jOFTJw70ceVxK1ld5_sW7VnpOrA8,819
13
13
  qolsys_controller/plugin_c4.py,sha256=71o5Y7Y13GO0vWCPIsCtpqXxrplryyqt8ua5L8F4StQ,382
14
- qolsys_controller/plugin_remote.py,sha256=EBOI6RzwtpCRDllsJRL2kR5z784YjmZh7rHMBoCeVgs,49505
14
+ qolsys_controller/plugin_remote.py,sha256=r0B8VG4UXMENW2Vq-hRGvhUiDFwGVSp7bEIcHiTjwtA,49626
15
15
  qolsys_controller/scene.py,sha256=b_8pzAJ08L7Nc-vouzkDxZKkcDQ239pLnvSDnN4g_oQ,1899
16
16
  qolsys_controller/settings.py,sha256=Drv2Vg84h8ZVWzOIex9xs96AZmWZkBT7cM4yvPJB4zc,6113
17
17
  qolsys_controller/state.py,sha256=JncrEQbJxV-fXbP31guTkWiA9rclwTok12vuK9YzUBo,17091
@@ -62,7 +62,7 @@ qolsys_controller/database/table_zwave_association_group.py,sha256=B8SHPU335a2wh
62
62
  qolsys_controller/database/table_zwave_history.py,sha256=iLCkRZOsQmc5TQT0-IngyNkrG78kQrEhITPChmNt1bM,942
63
63
  qolsys_controller/database/table_zwave_node.py,sha256=5YDHwG139qLUx9BwzCJaqovMgdCcXng0dWOTTa75kQs,2568
64
64
  qolsys_controller/database/table_zwave_other.py,sha256=RzWuWMQA3czUNRWAP8SaAk6tiTeUgGl3J97npzW6AA0,573
65
- qolsys_controller-0.0.35.dist-info/METADATA,sha256=UckR0h2VMw5UiJz5bB8B3ZCWDx85RFqQ_Kx6ywW8bLU,4329
66
- qolsys_controller-0.0.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
67
- qolsys_controller-0.0.35.dist-info/licenses/LICENSE,sha256=GBHv9eggdA5ablDMW1xiLzGDZ2gCIhcKGW__c2aVIOc,1069
68
- qolsys_controller-0.0.35.dist-info/RECORD,,
65
+ qolsys_controller-0.0.37.dist-info/METADATA,sha256=A9GeFw7WIf1e80E17CEi9h3LJRY_oqREe_vG29mO9fU,4329
66
+ qolsys_controller-0.0.37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
67
+ qolsys_controller-0.0.37.dist-info/licenses/LICENSE,sha256=GBHv9eggdA5ablDMW1xiLzGDZ2gCIhcKGW__c2aVIOc,1069
68
+ qolsys_controller-0.0.37.dist-info/RECORD,,