mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 08:15:49 +00:00
Use /data directory for .esphome folder when running as HA add-on (#5374)
This commit is contained in:
@@ -98,10 +98,9 @@ def validate_truetype_file(value):
|
||||
|
||||
|
||||
def _compute_local_font_dir(name) -> Path:
|
||||
base_dir = Path(CORE.config_dir) / ".esphome" / DOMAIN
|
||||
h = hashlib.new("sha256")
|
||||
h.update(name.encode())
|
||||
return base_dir / h.hexdigest()[:8]
|
||||
return Path(CORE.data_dir) / DOMAIN / h.hexdigest()[:8]
|
||||
|
||||
|
||||
def _compute_gfonts_local_path(value) -> Path:
|
||||
|
||||
Reference in New Issue
Block a user