'Get the value'

def get(self):

    val = self.db.get_attributes(self.id, consistent_read=True)
    if val:
        if ('timestamp' in val):
            self.timestamp = val['timestamp']
        if ('current_value' in val):
            self._value = self.item_type(val['current_value'])
        if (('last_value' in val) and (val['last_value'] is not None)):
            self.last_value = self.item_type(val['last_value'])
    return self._value
