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

Revert "Move backup/* WS commands to the backup integration" (#111136)

Revert "Move backup/* WS commands to the backup integration (#110651)"

This reverts commit ec4e6c3a74.
This commit is contained in:
Joakim Sørensen
2024-02-22 16:08:30 +01:00
committed by GitHub
parent 8bf0466151
commit 8f83426895
9 changed files with 158 additions and 467 deletions

View File

@@ -95,6 +95,15 @@ async def test_load_hassio(hass: HomeAssistant) -> None:
assert "hassio" in bootstrap._get_domains(hass, {})
async def test_load_backup(hass: HomeAssistant) -> None:
"""Test that we load the backup integration when not using Supervisor."""
with patch.dict(os.environ, {}, clear=True):
assert "backup" in bootstrap._get_domains(hass, {})
with patch.dict(os.environ, {"SUPERVISOR": "1"}):
assert "backup" not in bootstrap._get_domains(hass, {})
@pytest.mark.parametrize("load_registries", [False])
async def test_empty_setup(hass: HomeAssistant) -> None:
"""Test an empty set up loads the core."""