code: def MODE(self, setmode):
          
          set_data = True
          mode = None
          if setmode == self.AUTO_MODE:
              mode = 'AUTO_MODE'
          elif setmode == self.MANU_MODE:
              mode = 'MANU_MODE'
              set_data = self.get_set_temperature()
          elif setmode == self.BOOST_MODE:
              mode = 'BOOST_MODE'
          elif setmode == self.COMFORT_MODE:
              mode = 'COMFORT_MODE'
          elif setmode == self.LOWERING_MODE:
              mode = 'LOWERING_MODE'
          else:
              LOG.warning("Thermostat.MODE.setter: Invalid mode: %s" % str(setmode))
          if mode:
              self.actionNodeData(mode, set_data)
docs: Set mode.