def __init__(self, device, timeout, retransmits): message = "Device with id:'%s' timed out after %s seconds and %s retransmissions." % ( protocol.mac_string(device.id), timeout, retransmits) super(DeviceTimeoutError, self).__init__(message) self.device = device self.timeout = timeout self.retransmits = retransmits
def __repr__(self): return u'<Device MAC:%s, Label:%s>' % (protocol.mac_string(self._device_id), repr(self.label))
def __repr__(self): return u'<Device MAC:%s, Label:%s>' % (protocol.mac_string( self._device_id), repr(self.label))
def __init__(self, device, timeout, retransmits): message = "Device with id:'%s' timed out after %s seconds and %s retransmissions." % (protocol.mac_string(device.id), timeout, retransmits) super(DeviceTimeoutError, self).__init__(message) self.device = device self.timeout = timeout self.retransmits = retransmits