parameters: (self)
docstring: Reads the device's weight value, and pushes that value to the frontend.
docstring_summary: Reads the device's weight value, and pushes that value to the frontend.
docstring_tokens: Reads the device s weight value and pushes that value to the frontend .
function: def _take_measure(self):
          """Reads the device's weight value, and pushes that value to the frontend."""
  
          with self._device_lock:
              self._read_weight()
              if self.data['value'] != self.last_sent_value or self._status['status'] == self.STATUS_ERROR:
                  self.last_sent_value = self.data['value']
                  event_manager.device_changed(self)
function_tokens: def _take_measure ( self ) : with self . _device_lock : self . _read_weight ( ) if self . data [ 'value' ] != self . last_sent_value or self . _status [ 'status' ] == self . STATUS_ERROR : self . last_sent_value = self . data [ 'value' ] event_manager . device_changed ( self )