def set_value(self, value):

        if self.data_type == self.BOOLEAN_TYPE:
            self.value_boolean = bool(value)
        elif self.data_type == self.NUMBER_TYPE:
            self.value_number = float(value)
        else:
            self.value = value
Determine the proper value based on the data_type
dataset/ETHPy150Open fabric-bolt/fabric-bolt/fabric_bolt/projects/models.py/Configuration.set_value