Fix litejet tests
This commit is contained in:
1 parent
52926f1961
commit
41440d4f1b
4 files changed
+4
-4
No files matched your search
@@ -33,7 +33,7 @@ def get_switch_name(number):
|
||||
@pytest.fixture
|
||||
def mock_lj(hass):
|
||||
"""Initialize components."""
|
||||
with mock.patch("pylitejet.LiteJet") as mock_pylitejet:
|
||||
with mock.patch("homeassistant.components.litejet.LiteJet") as mock_pylitejet:
|
||||
mock_lj = mock_pylitejet.return_value
|
||||
|
||||
mock_lj.switch_pressed_callbacks = {}
|
||||
|
||||
Reference in new issue
Block a user