1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

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

View File

@@ -124,13 +124,13 @@ def test_get_bool_env(monkeypatch, var, value, default, expected):
@pytest.mark.parametrize("value, expected", ((None, False), ("Yes", True)))
def test_is_hassio(monkeypatch, value, expected):
def test_is_ha_addon(monkeypatch, value, expected):
if value is None:
monkeypatch.delenv("ESPHOME_IS_HASSIO", raising=False)
monkeypatch.delenv("ESPHOME_IS_HA_ADDON", raising=False)
else:
monkeypatch.setenv("ESPHOME_IS_HASSIO", value)
monkeypatch.setenv("ESPHOME_IS_HA_ADDON", value)
actual = helpers.is_hassio()
actual = helpers.is_ha_addon()
assert actual == expected