mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Packages: optional base path for remote git packages (#9279)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		| @@ -63,6 +63,7 @@ BASE_SCHEMA = cv.All( | ||||
|     cv.Schema( | ||||
|         { | ||||
|             cv.Required(CONF_URL): cv.url, | ||||
|             cv.Optional(CONF_PATH): cv.string, | ||||
|             cv.Optional(CONF_USERNAME): cv.string, | ||||
|             cv.Optional(CONF_PASSWORD): cv.string, | ||||
|             cv.Exclusive(CONF_FILE, CONF_FILES): validate_yaml_filename, | ||||
| @@ -116,6 +117,9 @@ def _process_base_package(config: dict) -> dict: | ||||
|     ) | ||||
|     files = [] | ||||
|  | ||||
|     if base_path := config.get(CONF_PATH): | ||||
|         repo_dir = repo_dir / base_path | ||||
|  | ||||
|     for file in config[CONF_FILES]: | ||||
|         if isinstance(file, str): | ||||
|             files.append({CONF_PATH: file, CONF_VARS: {}}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user