Select the UML node you want to modify, press F6 to open yEd's properties dialog, go to tab "UML", enter the desired text into text area "Attributes".
Note, the UML node has to be large enough to display its attributes. I.e. you may need to manually enlarge the node.