def label(self): """ The Label on this group """ labels = map(self._label_func, self.members) labels.sort(key=lambda k: k.updated_at) return protocol.bytes_to_label(labels[0].label)
def label(self): """ The Label on this group """ labels = map(lambda x:x._get_group_data(), self.members) labels.sort(key=lambda k:k.updated_at) return protocol.bytes_to_label(labels[0].label)
def label(self): """ The label for the device, setting this will change the label on the device. """ if self._label is None: response = self._block_for_response(pkt_type=protocol.TYPE_GETLABEL) self._label = protocol.bytes_to_label(response.label) return self._label
def label(self): """ The label for the device, setting this will change the label on the device. """ response = self._block_for_response(pkt_type=protocol.TYPE_GETLABEL) return protocol.bytes_to_label(response.label)