diff --git a/tests/components/automation/test_litejet.py b/tests/components/automation/test_litejet.py index 2e6f578ef4c..4c916d8ed96 100644 --- a/tests/components/automation/test_litejet.py +++ b/tests/components/automation/test_litejet.py @@ -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 = {} diff --git a/tests/components/litejet/test_light.py b/tests/components/litejet/test_light.py index 1fc6f1df94e..e4ca1c2106e 100644 --- a/tests/components/litejet/test_light.py +++ b/tests/components/litejet/test_light.py @@ -21,7 +21,7 @@ ENTITY_OTHER_LIGHT_NUMBER = 2 class TestLiteJetLight(unittest.TestCase): """Test the litejet component.""" - @mock.patch("pylitejet.LiteJet") + @mock.patch("homeassistant.components.litejet.LiteJet") def setup_method(self, method, mock_pylitejet): """Set up things to be run when tests are started.""" self.hass = get_test_home_assistant() diff --git a/tests/components/litejet/test_scene.py b/tests/components/litejet/test_scene.py index d9ab561b6e1..0f42ac40cdf 100644 --- a/tests/components/litejet/test_scene.py +++ b/tests/components/litejet/test_scene.py @@ -20,7 +20,7 @@ ENTITY_OTHER_SCENE_NUMBER = 2 class TestLiteJetScene(unittest.TestCase): """Test the litejet component.""" - @mock.patch("pylitejet.LiteJet") + @mock.patch("homeassistant.components.litejet.LiteJet") def setup_method(self, method, mock_pylitejet): """Set up things to be run when tests are started.""" self.hass = get_test_home_assistant() diff --git a/tests/components/litejet/test_switch.py b/tests/components/litejet/test_switch.py index b7f98087254..a9cf54dc1f6 100644 --- a/tests/components/litejet/test_switch.py +++ b/tests/components/litejet/test_switch.py @@ -21,7 +21,7 @@ ENTITY_OTHER_SWITCH_NUMBER = 2 class TestLiteJetSwitch(unittest.TestCase): """Test the litejet component.""" - @mock.patch("pylitejet.LiteJet") + @mock.patch("homeassistant.components.litejet.LiteJet") def setup_method(self, method, mock_pylitejet): """Set up things to be run when tests are started.""" self.hass = get_test_home_assistant()