First pass fixing tests that raise exceptions caught by asyncio.gather (#25860)
* First pass fixing tests that raise exceptions caught by asyncio.gather * Fix demo test * lint
This commit is contained in:
1 parent
76f2e6015f
commit
6f357cb23e
18 files changed
+79
-14
No files matched your search
@@ -6,6 +6,7 @@ from asynctest import Mock, patch
|
||||
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
|
||||
@@ -288,6 +289,7 @@ async def test_multiple_config_entry_created_when_installed(
|
||||
hass, app, locations, installed_apps, smartthings_mock
|
||||
):
|
||||
"""Test a config entries are created for multiple installs."""
|
||||
assert await async_setup_component(hass, "persistent_notification", {})
|
||||
flow = SmartThingsFlowHandler()
|
||||
flow.hass = hass
|
||||
flow.access_token = str(uuid4())
|
||||
|
||||
Reference in new issue
Block a user