docs: def get_device(self, device_id, refresh=False):
          """Get a single device."""
          if self._devices is None:
              self.get_devices()
              refresh = False
  
          device = self._devices.get(device_id)
  
          if device and refresh:
              device.refresh()
  
          return device