casambi-bt-revamped 0.3.8.dev3__py3-none-any.whl → 0.3.10__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.
CasambiBt/_client.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import asyncio
2
+ import inspect
2
3
  import logging
3
4
  import struct
4
5
  from binascii import b2a_hex as b2a
@@ -183,8 +184,15 @@ class CasambiClient:
183
184
 
184
185
  # Device will initiate key exchange, so listen for that
185
186
  self._logger.debug("Starting notify")
187
+ notify_kwargs: dict[str, Any] = {}
188
+ notify_params = inspect.signature(self._gattClient.start_notify).parameters
189
+ if "bluez" in notify_params:
190
+ notify_kwargs["bluez"] = {"use_start_notify": True}
191
+
186
192
  await self._gattClient.start_notify(
187
- CASA_AUTH_CHAR_UUID, self._queueCallback
193
+ CASA_AUTH_CHAR_UUID,
194
+ self._queueCallback,
195
+ **notify_kwargs,
188
196
  )
189
197
  finally:
190
198
  self._activityLock.release()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: casambi-bt-revamped
3
- Version: 0.3.8.dev3
3
+ Version: 0.3.10
4
4
  Summary: Enhanced Casambi Bluetooth client library with switch event support
5
5
  Home-page: https://github.com/rankjie/casambi-bt
6
6
  Author: rankjie
@@ -12,7 +12,7 @@ Classifier: Development Status :: 4 - Beta
12
12
  Requires-Python: >=3.11
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: bleak>=0.22
15
+ Requires-Dist: bleak!=2.0.0,>=0.22
16
16
  Requires-Dist: cryptography>=40.0.0
17
17
  Requires-Dist: httpx>=0.25
18
18
  Requires-Dist: bleak_retry_connector>=3.6.0
@@ -1,7 +1,7 @@
1
1
  CasambiBt/__init__.py,sha256=TW445xSu5PV3TyMjJfwaA1JoWvQQ8LXhZgGdDTfWf3s,302
2
2
  CasambiBt/_cache.py,sha256=KZ2xbiHAHXUPa8Gw_75Nw9NL4QSY_sTWHbyYXYUDaB0,3865
3
3
  CasambiBt/_casambi.py,sha256=AfyuzEU2ylJOGLmZ87Qft-aNXI_JK8Ng9Tfk4fWYOwo,34345
4
- CasambiBt/_client.py,sha256=6uFawDzPJuLEhD5oVaFlxDSm3herw_eBUPFkUIHLgYw,31832
4
+ CasambiBt/_client.py,sha256=cmRXPxURJpp8xQM-FJe2NBMtfFFC7NnWExTaN65LQ5c,32142
5
5
  CasambiBt/_constants.py,sha256=_AxkG7Btxl4VeS6mO7GJW5Kc9dFs3s9sDmtJ83ZEKNw,359
6
6
  CasambiBt/_discover.py,sha256=H7HpiFYIy9ELvmPXXd_ck-5O5invJf15dDIRk-vO5IE,1696
7
7
  CasambiBt/_encryption.py,sha256=CLcoOOrggQqhJbnr_emBnEnkizpWDvb_0yFnitq4_FM,3831
@@ -11,8 +11,8 @@ CasambiBt/_operation.py,sha256=Q5UccsrtNp_B_wWqwH_3eLFW_yF6A55FMmfUKDk2WrI,1059
11
11
  CasambiBt/_unit.py,sha256=KR_dvVhCH8WIPGJgZYHyAPVA6ru0KmMOL5NgkxYHIUQ,17042
12
12
  CasambiBt/errors.py,sha256=0JgDjaKlAKDes0poWzA8nrTUYQ8qdNfBb8dfaqqzCRA,1664
13
13
  CasambiBt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- casambi_bt_revamped-0.3.8.dev3.dist-info/licenses/LICENSE,sha256=TAIIitFxpxEDi6Iju7foW4TDQmWvC-IhLVLhl67jKmQ,11341
15
- casambi_bt_revamped-0.3.8.dev3.dist-info/METADATA,sha256=Acuf-qcCilqoHwvqXl8FSw-T-C0kUP1z1378obAEaMM,3048
16
- casambi_bt_revamped-0.3.8.dev3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- casambi_bt_revamped-0.3.8.dev3.dist-info/top_level.txt,sha256=uNbqLjtecFosoFzpGAC89-5icikWODKI8rOjbi8v_sA,10
18
- casambi_bt_revamped-0.3.8.dev3.dist-info/RECORD,,
14
+ casambi_bt_revamped-0.3.10.dist-info/licenses/LICENSE,sha256=TAIIitFxpxEDi6Iju7foW4TDQmWvC-IhLVLhl67jKmQ,11341
15
+ casambi_bt_revamped-0.3.10.dist-info/METADATA,sha256=50T_HBdcxEO8v8-DSizfPpfP_pzs5XuSVl0QRMUUaRU,3052
16
+ casambi_bt_revamped-0.3.10.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
17
+ casambi_bt_revamped-0.3.10.dist-info/top_level.txt,sha256=uNbqLjtecFosoFzpGAC89-5icikWODKI8rOjbi8v_sA,10
18
+ casambi_bt_revamped-0.3.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5