mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Fix tests
This commit is contained in:
parent
1c147b5c5f
commit
d83f20f743
@ -1,4 +1,6 @@
|
||||
"""Huawei LTE component tests."""
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components import huawei_lte
|
||||
@ -7,7 +9,7 @@ from homeassistant.components import huawei_lte
|
||||
@pytest.fixture(autouse=True)
|
||||
def routerdata():
|
||||
"""Set up a router data for testing."""
|
||||
rd = huawei_lte.RouterData(None)
|
||||
rd = huawei_lte.RouterData(Mock())
|
||||
rd.device_information = {
|
||||
'SoftwareVersion': '1.0',
|
||||
'nested': {'foo': 'bar'},
|
||||
|
Loading…
x
Reference in New Issue
Block a user