diff --git a/custom_components/xiaomi_home/miot/miot_mips.py b/custom_components/xiaomi_home/miot/miot_mips.py index cbe41cf..a91f1ba 100644 --- a/custom_components/xiaomi_home/miot/miot_mips.py +++ b/custom_components/xiaomi_home/miot/miot_mips.py @@ -105,8 +105,7 @@ def unpack(data: bytes): # string end with \x00 match unpack_type: case MipsMsgTypeOptions.ID.value: - mips_msg.mid = int.from_bytes( - unpack_data, byteorder='little') + mips_msg.mid = struct.unpack('