Change most references from hassio to ha-addon (#3178)

This commit is contained in:
Jesse Hills
2022-02-09 23:46:20 +13:00
committed by GitHub
parent e7dd6c52ac
commit 5c22065135
24 changed files with 42 additions and 36 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ from esphome.coroutine import FakeEventLoop as _FakeEventLoop
# pylint: disable=unused-import
from esphome.coroutine import coroutine, coroutine_with_priority # noqa
from esphome.helpers import ensure_unique_string, is_hassio
from esphome.helpers import ensure_unique_string, is_ha_addon
from esphome.util import OrderedDict
if TYPE_CHECKING:
@@ -568,12 +568,12 @@ class EsphomeCore:
return self.relative_build_path("src", *path)
def relative_pioenvs_path(self, *path):
if is_hassio():
if is_ha_addon():
return os.path.join("/data", self.name, ".pioenvs", *path)
return self.relative_build_path(".pioenvs", *path)
def relative_piolibdeps_path(self, *path):
if is_hassio():
if is_ha_addon():
return os.path.join("/data", self.name, ".piolibdeps", *path)
return self.relative_build_path(".piolibdeps", *path)