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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 25 additions and 25 deletions

View file

@ -84,7 +84,7 @@ async def test_load_hassio(hass):
with patch.dict(os.environ, {}, clear=True):
assert bootstrap._get_domains(hass, {}) == set()
with patch.dict(os.environ, {"HASSIO": "1"}):
with patch.dict(os.environ, {"SUPERVISOR": "1"}):
assert bootstrap._get_domains(hass, {}) == {"hassio"}