def _dev2addr(self, device): """ Parse the internal address out of the device :param device: qdevices.QBaseDevice device :return: internal address [addr1, addr2, ...] """ addr = [] for key in self.addr_items: addr.append(none_or_int(device.get_param(key))) return addr