Skip to content

Commit a5799af

Browse files
committed
fix button press KS1 KS1BP
1 parent b6a9fd2 commit a5799af

File tree

1 file changed

+13
-1
lines changed
  • custom_components/ble_monitor/ble_parser

1 file changed

+13
-1
lines changed

custom_components/ble_monitor/ble_parser/xiaomi.py

+13-1
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,19 @@ def parse_xiaomi(self, data: bytes, mac: str):
14771477
]:
14781478
resfunc = xiaomi_dataobject_dict.get(obj_typecode, None)
14791479
if resfunc:
1480-
if hex(obj_typecode) in ["0x8", "0x100e", "0x1001", "0xf", "0xb", "0x4e0c", "0x4e0d", "0x4e0e"]:
1480+
if hex(obj_typecode) in [
1481+
"0x8",
1482+
"0x100e",
1483+
"0x1001",
1484+
"0xf",
1485+
"0xb",
1486+
"0x4e0c",
1487+
"0x4e0d",
1488+
"0x4e0e",
1489+
"0x560c",
1490+
"0x560d",
1491+
"0x560e"
1492+
]:
14811493
result.update(resfunc(dobject, device_type))
14821494
else:
14831495
result.update(resfunc(dobject))

0 commit comments

Comments
 (0)