mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix .esphome path when not using envvar (#5440)
This commit is contained in:
		| @@ -558,7 +558,7 @@ class EsphomeCore: | ||||
|     def data_dir(self): | ||||
|         if is_ha_addon(): | ||||
|             return os.path.join("/data") | ||||
|         if get_str_env("ESPHOME_DATA_DIR", None) is not None: | ||||
|         if "ESPHOME_DATA_DIR" in os.environ: | ||||
|             return get_str_env("ESPHOME_DATA_DIR", None) | ||||
|         return self.relative_config_path(".esphome") | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user