casambi-bt-revamped 0.3.7.dev2__py3-none-any.whl → 0.3.7.dev4__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
@@ -695,10 +695,10 @@ class CasambiClient:
695
695
  # This is redundant since we already return early if unit_id_echo != unit_id
696
696
  # Removing to avoid confusion
697
697
 
698
- # Filter out ALL type 0x08 messages (broadcast notifications with incorrect button numbers)
698
+ # Filter out all type 0x08 messages
699
699
  if message_type == 0x08:
700
700
  self._logger.debug(
701
- f"Filtering out type 0x08 broadcast event: button={button} (incorrect), unit_id={unit_id}, "
701
+ f"Filtering out type 0x08 event: button={button}, unit_id={unit_id}, "
702
702
  f"action={action_display}, flags=0x{flags:02x}"
703
703
  )
704
704
  return
CasambiBt/_network.py CHANGED
@@ -382,6 +382,7 @@ class Network:
382
382
  unitTypeJson["mode"],
383
383
  unitTypeJson["stateLength"],
384
384
  controls,
385
+ unitTypeJson.get("pushButtonCount"),
385
386
  )
386
387
 
387
388
  # Chache unit type
CasambiBt/_unit.py CHANGED
@@ -75,6 +75,7 @@ class UnitType:
75
75
  :ivar model: The model name of this unit type.
76
76
  :ivar manufacturer: The manufacturer of this unit type.
77
77
  :ivar controls: The different types of controls this unit type is capable of.
78
+ :ivar pushButtonCount: The number of push buttons this unit type has (optional).
78
79
  """
79
80
 
80
81
  id: int
@@ -83,6 +84,7 @@ class UnitType:
83
84
  mode: str
84
85
  stateLength: int
85
86
  controls: list[UnitControl]
87
+ pushButtonCount: int | None = None
86
88
 
87
89
  def get_control(self, controlType: UnitControlType) -> UnitControl | None:
88
90
  """Return the control description if the unit type supports the given type of control.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: casambi-bt-revamped
3
- Version: 0.3.7.dev2
3
+ Version: 0.3.7.dev4
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
@@ -1,19 +1,19 @@
1
1
  CasambiBt/__init__.py,sha256=TW445xSu5PV3TyMjJfwaA1JoWvQQ8LXhZgGdDTfWf3s,302
2
2
  CasambiBt/_cache.py,sha256=KZ2xbiHAHXUPa8Gw_75Nw9NL4QSY_sTWHbyYXYUDaB0,3865
3
3
  CasambiBt/_casambi.py,sha256=gLLkhEcObgapqTx5Mk7WRClyG29UyfZYZCCIhhOg4H4,23101
4
- CasambiBt/_client.py,sha256=9unl06kieav7Xnn7x8nljiwmv2U8_Wdp3GwxuJdT76o,30589
4
+ CasambiBt/_client.py,sha256=8a1sYxvuNStb7ldgeEHDFyonPIfPTIjFtqZQIbDo62U,30511
5
5
  CasambiBt/_client_android_parser.py,sha256=1lVkVYMO0Nhh9_nkNwgb68hlCS_uD8WxYQDir5hOdHs,7744
6
6
  CasambiBt/_constants.py,sha256=_AxkG7Btxl4VeS6mO7GJW5Kc9dFs3s9sDmtJ83ZEKNw,359
7
7
  CasambiBt/_discover.py,sha256=H7HpiFYIy9ELvmPXXd_ck-5O5invJf15dDIRk-vO5IE,1696
8
8
  CasambiBt/_encryption.py,sha256=CLcoOOrggQqhJbnr_emBnEnkizpWDvb_0yFnitq4_FM,3831
9
9
  CasambiBt/_keystore.py,sha256=Jdiq0zMPDmhfpheSojKY6sTUpmVrvX_qOyO7yCYd3kw,2788
10
- CasambiBt/_network.py,sha256=qcsWn_EsBexzXCv14JcpSIymhuR6Eaf479lZdzpfYBM,14417
10
+ CasambiBt/_network.py,sha256=B5uVDrfwFKZ3UQgf5THUwasBxh1nzl7KJlq9CqoIyqU,14466
11
11
  CasambiBt/_operation.py,sha256=-BuC1Bvtg-G-zSN_b_0JMvXdHZaR6LbTw0S425jg96c,842
12
- CasambiBt/_unit.py,sha256=YiQWoHmMDWHHo4XAjtW8rHsBqIqpmp9MVdv1Mbu2xw4,17043
12
+ CasambiBt/_unit.py,sha256=B1ce5MaNdoF9ljHAhoiRfV1Tn6CBM4oD3OPDmShIMm8,17167
13
13
  CasambiBt/errors.py,sha256=0JgDjaKlAKDes0poWzA8nrTUYQ8qdNfBb8dfaqqzCRA,1664
14
14
  CasambiBt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- casambi_bt_revamped-0.3.7.dev2.dist-info/licenses/LICENSE,sha256=TAIIitFxpxEDi6Iju7foW4TDQmWvC-IhLVLhl67jKmQ,11341
16
- casambi_bt_revamped-0.3.7.dev2.dist-info/METADATA,sha256=-cu558LFlTi9ux6C8YNPFBBIZKdS2nRhfEd19VH_D5U,3049
17
- casambi_bt_revamped-0.3.7.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- casambi_bt_revamped-0.3.7.dev2.dist-info/top_level.txt,sha256=uNbqLjtecFosoFzpGAC89-5icikWODKI8rOjbi8v_sA,10
19
- casambi_bt_revamped-0.3.7.dev2.dist-info/RECORD,,
15
+ casambi_bt_revamped-0.3.7.dev4.dist-info/licenses/LICENSE,sha256=TAIIitFxpxEDi6Iju7foW4TDQmWvC-IhLVLhl67jKmQ,11341
16
+ casambi_bt_revamped-0.3.7.dev4.dist-info/METADATA,sha256=7DgCkhLn7OMDycRzDzB7EevVTt1gZqnGr5UVCvbemZo,3049
17
+ casambi_bt_revamped-0.3.7.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ casambi_bt_revamped-0.3.7.dev4.dist-info/top_level.txt,sha256=uNbqLjtecFosoFzpGAC89-5icikWODKI8rOjbi8v_sA,10
19
+ casambi_bt_revamped-0.3.7.dev4.dist-info/RECORD,,