'Update the controller with the latest value from a sensor.'

def update(self):

    MySensorsSwitch.update(self)
    if (self.value_type in self._values):
        self._ir_code = self._values[self.value_type]
