def replace_constraints(self, old_cns, new_cns):
        parent = self.parent()
        if isinstance(parent, QtConstraintsWidget):
            parent.replace_constraints(old_cns, new_cns)
Update the controller with the latest value from a sensor.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_constraints_widget.py/QtConstraintsWidget.replace_constraints--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/mysensors.py/MySensorsLightRGBW.update