code: def superseeded_by(self, other_service):
          
          if not other_service or \
                  other_service.__class__ != self.__class__ or \
                  other_service.protocol != self.protocol or \
                  other_service.port != self.port:
              return False
  
          # If this service does not have a login id but the other one does, then
          # we should return True here
          return not self.device_credentials and other_service.device_credentials
docs: Return True if input service has login id and this has not.