mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 23:14:54 +01:00
Fix .esphome path when not using envvar (#5440)
This commit is contained in:
parent
57b7dd0fa2
commit
4ac4492241
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue