code: def add_device(self, device, container):
          
          # There is a size tag which the JSS manages for us, so we can
          # ignore it.
          if self.findtext("is_smart") == "false":
              self.add_object_to_path(device, container)
          else:
              # Technically this isn't true. It will strangely accept
              # them, and they even show up as members of the group!
              raise ValueError("Devices may not be added to smart groups.")
docs: Add a device to a group. Wraps JSSObject.add_object_to_path.
  
          Args:
              device: A JSSObject to add (as list data), to this object.
              location: Element or a string path argument to find()