function getDeviceParam(device, paramName) {
  if (!get(device, 'params')) {
    return null;
  }
  const param = device.params.find((oneParam) => oneParam.name === paramName);
  if (param) {
    return param.value;
  }
  return null;
}
@description Get Device param by name.
@param {object} device - Device Object to parse.
@param {string} paramName - The name of the param to get.
@returns {string} Return param.
@example
const value = getDeviceParam({
 params: [{ name: 'test', value: 1 }]
}, 'test');