mirror of
https://github.com/esphome/esphome.git
synced 2025-09-12 00:02:21 +01:00
Use /data directory for .esphome folder when running as HA add-on (#5374)
This commit is contained in:
@@ -52,7 +52,7 @@ Image_ = image_ns.class_("Image")
|
||||
|
||||
|
||||
def _compute_local_icon_path(value) -> Path:
|
||||
base_dir = Path(CORE.config_dir) / ".esphome" / DOMAIN / "mdi"
|
||||
base_dir = Path(CORE.data_dir) / DOMAIN / "mdi"
|
||||
return base_dir / f"{value[CONF_ICON]}.svg"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user