:param value: Any number
        :param labels: A list of two Strings sending None won't change the current values.
        :return:

def set_state(self, value, labels=None):
        """

        :param value: Any number
        :param labels: A list of two Strings sending None won't change the current values.
        :return:
        """

        values = {"value": value}
        json_labels = []
        if labels:
            for label in labels:
                json_labels.append(str(label).upper())
            values["labels"] = json_labels

        self._update_state_from_response(self.parent.set_dial(values, self.index()))