code: func (w *wrapper) Device(id protocol.DeviceID) (DeviceConfiguration, bool) {
  	w.mut.Lock()
  	defer w.mut.Unlock()
  	for _, device := range w.cfg.Devices {
  		if device.DeviceID == id {
  			return device.Copy(), true
  		}
  	}
  	return DeviceConfiguration{}, false
  }
docs: // Device returns the configuration for the given device and an "ok" bool.