def METHOD_NAME(self) -> None:
    if self._zero_conf is not None:
        self._zero_conf.close()
        self._zero_conf = None
    if self._zero_conf_browser is not None:
        self._zero_conf_browser.cancel()
        self._zero_conf_browser = None