Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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
Beispiel #4
0
 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)