mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Tests for zwave setup features (#7570)
* Tests for zwave setup features * Add test for frontend panel register
This commit is contained in:
committed by
Paulus Schoutsen
parent
c118be6639
commit
189023821b
@@ -14,7 +14,7 @@ from homeassistant.components import mqtt
|
||||
|
||||
from tests.common import async_test_home_assistant, mock_coro
|
||||
from tests.test_util.aiohttp import mock_aiohttp_client
|
||||
from tests.mock.zwave import MockNetwork
|
||||
from tests.mock.zwave import MockNetwork, MockOption
|
||||
|
||||
if os.environ.get('UVLOOP') == '1':
|
||||
import uvloop
|
||||
@@ -101,6 +101,7 @@ def mock_openzwave():
|
||||
libopenzwave = base_mock.libopenzwave
|
||||
libopenzwave.__file__ = 'test'
|
||||
base_mock.network.ZWaveNetwork = MockNetwork
|
||||
base_mock.option.ZWaveOption = MockOption
|
||||
|
||||
with patch.dict('sys.modules', {
|
||||
'libopenzwave': libopenzwave,
|
||||
|
||||
Reference in New Issue
Block a user