1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use supervisor envs instead of hassio (#72601)

This commit is contained in:
Joakim Sørensen
2022-05-30 12:00:13 +02:00
committed by GitHub
parent c8f677ce4c
commit 3a0111e65d
17 changed files with 25 additions and 25 deletions

View File

@@ -33,10 +33,10 @@ BANNED_IPS_WITH_SUPERVISOR = BANNED_IPS + [SUPERVISOR_IP]
@pytest.fixture(name="hassio_env")
def hassio_env_fixture():
"""Fixture to inject hassio env."""
with patch.dict(os.environ, {"HASSIO": "127.0.0.1"}), patch(
with patch.dict(os.environ, {"SUPERVISOR": "127.0.0.1"}), patch(
"homeassistant.components.hassio.HassIO.is_connected",
return_value={"result": "ok", "data": {}},
), patch.dict(os.environ, {"HASSIO_TOKEN": "123456"}):
), patch.dict(os.environ, {"SUPERVISOR_TOKEN": "123456"}):
yield