Proxy method to register the device with the parent.

def register(self):
        """Proxy method to register the device with the parent.
        """
        if not self.registered:
            self.registered = True
            if self.parent:
                self.parent.register(self)