diff --git a/src/bthome_ble/parser.py b/src/bthome_ble/parser.py index 33c7650..9904f21 100644 --- a/src/bthome_ble/parser.py +++ b/src/bthome_ble/parser.py @@ -66,11 +66,11 @@ def parse_float(data_obj: bytes, factor: float = 1.0) -> float | None: """Convert bytes (as float) and factor to float.""" decimal_places = -int(f"{factor:e}".split("e")[-1]) if len(data_obj) == 2: - [val] = struct.unpack("e", data_obj) + [val] = struct.unpack("