mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Move 3th party lib inside function
This commit is contained in:
@@ -6,8 +6,6 @@ from homeassistant.components import homematicip_cloud as hmipc
|
||||
|
||||
from tests.common import mock_coro
|
||||
|
||||
from homematicip.base.base_connection import HmipConnectionError
|
||||
|
||||
|
||||
async def test_hap_init(aioclient_mock):
|
||||
"""Test a successful setup."""
|
||||
@@ -31,6 +29,8 @@ async def test_hap_init(aioclient_mock):
|
||||
|
||||
async def test_hap_setup_invalid_token():
|
||||
"""Test we start config flow if username is no longer whitelisted."""
|
||||
from homematicip.base.base_connection import HmipConnectionError
|
||||
|
||||
hass = Mock()
|
||||
entry = Mock()
|
||||
entry.data = {
|
||||
|
Reference in New Issue
Block a user