Remove homeassistant from cloud dependencies (#92169)
This commit is contained in:
parent
6b829ca57b
commit
ec1ae7e2df
2 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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)):
|
||||
|
|
Loading…
Add table
Reference in a new issue