(self)
Reads the device's weight value, and pushes that value to the frontend.
Reads the device's weight value, and pushes that value to the frontend.
Reads the device s weight value and pushes that value to the frontend .
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)
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 )