On Sat, Apr 26, 2025 at 08:48:51AM +0200, Paul Gevers wrote: > This bug has your user tag already, but it wasn't X-Debbugs-CC to you, you > might want to help out. (Start of report below, full report from > https://bugs.debian.org/1103588)
Something like: --- a/src/xiaomi_ble/parser.py +++ b/src/xiaomi_ble/parser.py @@ -1171,7 +1171,7 @@ xobj: bytes, device: XiaomiBluetoothDeviceData, device_type: str ) -> dict[str, Any]: """Motion detected with Illuminance in lux""" - (illum,) = struct.unpack("f", xobj) + (illum,) = struct.unpack("<f", xobj) device.update_predefined_binary_sensor(BinarySensorDeviceClass.MOTION, True) device.update_predefined_sensor(SensorLibrary.LIGHT__LIGHT_LUX, illum) return {} Bastian -- ... The prejudices people feel about each other disappear when they get to know each other. -- Kirk, "Elaan of Troyius", stardate 4372.5