qolsys-controller 0.0.35__py3-none-any.whl → 0.0.36__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.
- qolsys_controller/plugin_remote.py +10 -9
- {qolsys_controller-0.0.35.dist-info → qolsys_controller-0.0.36.dist-info}/METADATA +1 -1
- {qolsys_controller-0.0.35.dist-info → qolsys_controller-0.0.36.dist-info}/RECORD +5 -5
- {qolsys_controller-0.0.35.dist-info → qolsys_controller-0.0.36.dist-info}/WHEEL +0 -0
- {qolsys_controller-0.0.35.dist-info → qolsys_controller-0.0.36.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
|
406
|
-
content =
|
|
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[:-
|
|
419
|
+
request = request[:-4]
|
|
419
420
|
|
|
420
421
|
LOGGER.debug("Saving [Signed Client Certificate]")
|
|
421
|
-
with
|
|
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[:-
|
|
430
|
+
request = request[:-4]
|
|
430
431
|
|
|
431
432
|
LOGGER.debug("Saving [Qolsys Certificate]")
|
|
432
|
-
with
|
|
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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qolsys-controller
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.36
|
|
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
|
|
@@ -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=
|
|
14
|
+
qolsys_controller/plugin_remote.py,sha256=Z5d0P3iYcYjRGlkVf8ENXcNDC17_Tziao_zKdPoZRl0,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.
|
|
66
|
-
qolsys_controller-0.0.
|
|
67
|
-
qolsys_controller-0.0.
|
|
68
|
-
qolsys_controller-0.0.
|
|
65
|
+
qolsys_controller-0.0.36.dist-info/METADATA,sha256=dWLjD5IIkUHuN0jH_JvtRF1RS3kAZskfoavpm6YefAE,4329
|
|
66
|
+
qolsys_controller-0.0.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
67
|
+
qolsys_controller-0.0.36.dist-info/licenses/LICENSE,sha256=GBHv9eggdA5ablDMW1xiLzGDZ2gCIhcKGW__c2aVIOc,1069
|
|
68
|
+
qolsys_controller-0.0.36.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|