Skip to content

Commit

Permalink
fix button press KS1 KS1BP
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 committed Jul 6, 2024
1 parent b6a9fd2 commit a5799af
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion custom_components/ble_monitor/ble_parser/xiaomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,19 @@ def parse_xiaomi(self, data: bytes, mac: str):
]:
resfunc = xiaomi_dataobject_dict.get(obj_typecode, None)
if resfunc:
if hex(obj_typecode) in ["0x8", "0x100e", "0x1001", "0xf", "0xb", "0x4e0c", "0x4e0d", "0x4e0e"]:
if hex(obj_typecode) in [
"0x8",
"0x100e",
"0x1001",
"0xf",
"0xb",
"0x4e0c",
"0x4e0d",
"0x4e0e",
"0x560c",
"0x560d",
"0x560e"
]:
result.update(resfunc(dobject, device_type))
else:
result.update(resfunc(dobject))
Expand Down

0 comments on commit a5799af

Please sign in to comment.