From ec1ae7e2df2496d5ca0ef75d73e5cfbf76b6f25f Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 28 Apr 2023 14:27:06 +0200 Subject: [PATCH] Remove homeassistant from cloud dependencies (#92169) --- homeassistant/components/cloud/manifest.json | 2 +- tests/components/cloud/__init__.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/cloud/manifest.json b/homeassistant/components/cloud/manifest.json index 2dbbc81e4c6..45d540e9780 100644 --- a/homeassistant/components/cloud/manifest.json +++ b/homeassistant/components/cloud/manifest.json @@ -3,7 +3,7 @@ "name": "Home Assistant Cloud", "after_dependencies": ["assist_pipeline", "google_assistant", "alexa"], "codeowners": ["@home-assistant/cloud"], - "dependencies": ["homeassistant", "http", "webhook"], + "dependencies": ["http", "webhook"], "documentation": "https://www.home-assistant.io/integrations/cloud", "integration_type": "system", "iot_class": "cloud_push", diff --git a/tests/components/cloud/__init__.py b/tests/components/cloud/__init__.py index 7933d8639c1..ea8c09706c5 100644 --- a/tests/components/cloud/__init__.py +++ b/tests/components/cloud/__init__.py @@ -9,6 +9,10 @@ from homeassistant.setup import async_setup_component async def mock_cloud(hass, config=None): """Mock cloud.""" + # The homeassistant integration is needed by cloud. It's not in it's requirements + # because it's always setup by bootstrap. Set it up manually in tests. + assert await async_setup_component(hass, "homeassistant", {}) + assert await async_setup_component(hass, cloud.DOMAIN, {"cloud": config or {}}) cloud_inst = hass.data["cloud"] with patch("hass_nabucasa.Cloud.run_executor", AsyncMock(return_value=None)):