parameters: (hacs: Hacs, path: str | Path)
return_statement: return Path(path) not in paths
docstring: Helper to check if path is safe to remove.
docstring_summary: Helper to check if path is safe to remove.
docstring_tokens: Helper to check if path is safe to remove .
function: def is_safe(hacs: Hacs, path: str | Path) -> bool:
      """Helper to check if path is safe to remove."""
      paths = [
          Path(f"{hacs.core.config_path}/{hacs.configuration.appdaemon_path}"),
          Path(f"{hacs.core.config_path}/{hacs.configuration.netdaemon_path}"),
          Path(f"{hacs.core.config_path}/{hacs.configuration.plugin_path}"),
          Path(f"{hacs.core.config_path}/{hacs.configuration.python_script_path}"),
          Path(f"{hacs.core.config_path}/{hacs.configuration.theme_path}"),
          Path(f"{hacs.core.config_path}/custom_components/"),
      ]
      return Path(path) not in paths
function_tokens: def is_safe ( hacs : Hacs , path : str | Path ) -> bool : paths = [ Path ( f"{hacs.core.config_path}/{hacs.configuration.appdaemon_path}" ) , Path ( f"{hacs.core.config_path}/{hacs.configuration.netdaemon_path}" ) , Path ( f"{hacs.core.config_path}/{hacs.configuration.plugin_path}" ) , Path ( f"{hacs.core.config_path}/{hacs.configuration.python_script_path}" ) , Path ( f"{hacs.core.config_path}/{hacs.configuration.theme_path}" ) , Path ( f"{hacs.core.config_path}/custom_components/" ) , ] return Path ( path ) not in paths