mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 21:22:22 +01:00
Use /data directory for .esphome folder when running as HA add-on (#5374)
This commit is contained in:
@@ -198,8 +198,8 @@ def preload_core_config(config, result):
|
||||
CORE.data[KEY_CORE] = {}
|
||||
|
||||
if CONF_BUILD_PATH not in conf:
|
||||
conf[CONF_BUILD_PATH] = f".esphome/build/{CORE.name}"
|
||||
CORE.build_path = CORE.relative_config_path(conf[CONF_BUILD_PATH])
|
||||
conf[CONF_BUILD_PATH] = f"build/{CORE.name}"
|
||||
CORE.build_path = CORE.relative_internal_path(conf[CONF_BUILD_PATH])
|
||||
|
||||
has_oldstyle = CONF_PLATFORM in conf
|
||||
newstyle_found = [key for key in TARGET_PLATFORMS if key in config]
|
||||
|
Reference in New Issue
Block a user