We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48a1bb2 + 79aae30 commit 708297cCopy full SHA for 708297c
custom_components/ble_monitor/ble_parser/mikrotik.py
@@ -10,11 +10,14 @@
10
11
def convert_8_8_to_float(val_1, val_2):
12
"""8.8 to float converter"""
13
- return val_1 + (val_2 / 256)
+ if val_1 == 0xFF and val_2 == 0xFF:
14
+ return 0.0
15
+ else:
16
+ return val_1 + (val_2 / 256)
17
18
19
def parse_mikrotik(self, data: bytes, mac: bytes):
- """Inkbird parser"""
20
+ """Mikrotik parser"""
21
msg_length = len(data)
22
firmware = "Mikrotik"
23
result = {"firmware": firmware}
custom_components/ble_monitor/manifest.json
@@ -14,5 +14,5 @@
"btsocket>=0.3.0",
"pyric>=0.1.6.3"
],
- "version": "13.0.1"
+ "version": "13.0.2"
}
0 commit comments