Install requirements of after_dependencies when loading integrations (#29491)
* Install requirements of after_dependencies when loading integrations * Fix smartthings test
This commit is contained in:
1 parent
957e5018f4
commit
e99184bf68
19 files changed
+57
-98
No files matched your search
@@ -7,7 +7,6 @@ from pysmartthings import APIResponseError
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.components import cloud
|
||||
from homeassistant.components.smartthings import smartapp
|
||||
from homeassistant.components.smartthings.config_flow import SmartThingsFlowHandler
|
||||
from homeassistant.components.smartthings.const import (
|
||||
@@ -18,7 +17,7 @@ from homeassistant.components.smartthings.const import (
|
||||
DOMAIN,
|
||||
)
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
from tests.common import MockConfigEntry, mock_coro
|
||||
|
||||
|
||||
async def test_step_user(hass):
|
||||
@@ -211,9 +210,11 @@ async def test_cloudhook_app_created_then_show_wait_form(
|
||||
await smartapp.unload_smartapp_endpoint(hass)
|
||||
|
||||
with patch.object(
|
||||
cloud, "async_active_subscription", return_value=True
|
||||
hass.components.cloud, "async_active_subscription", return_value=True
|
||||
), patch.object(
|
||||
cloud, "async_create_cloudhook", return_value="http://cloud.test"
|
||||
hass.components.cloud,
|
||||
"async_create_cloudhook",
|
||||
return_value=mock_coro("http://cloud.test"),
|
||||
) as mock_create_cloudhook:
|
||||
|
||||
await smartapp.setup_smartapp_endpoint(hass)
|
||||
|
||||
Reference in new issue
Block a user