def METHOD_NAME(self, enable: bool = True):
    """Configure the availability of the local interface.
    :type: bool
        ``True``: enables the local interface
        ``False``: disables it.
    """
    self.write("*UNLOCK" if enable else "*LOCK")