docs: def detect(self):
          """Detect and return the IP address."""
          if PY3:  # py23
              import subprocess  # noqa: S404 @UnresolvedImport pylint: disable=import-error
          else:
              import commands as subprocess  # @UnresolvedImport pylint: disable=import-error
          try:
              theip = subprocess.getoutput(self.opts_command)  # noqa: S605
          except Exception:
              theip = None
          self.set_current_value(theip)
          return theip