code: def set_schedule_enabled(self, state):
          
          desired_state = {"schedule_enabled": state}
  
          response = self.api_interface.set_device_state(self, {
              "desired_state": desired_state
          })
  
          self._update_state_from_response(response)
docs: :param state: a boolean True (on) or False (off)
          :return: nothing