Skip to content

Commit ee2e9dc

Browse files
authored
Fix homewizard tests opening sockets (home-assistant#156370)
1 parent 85cd3c6 commit ee2e9dc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/components/homewizard/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ def mock_homewizardenergy(
4141
"homeassistant.components.homewizard.config_flow.HomeWizardEnergyV1",
4242
new=homewizard,
4343
),
44+
patch(
45+
"homeassistant.components.homewizard.has_v2_api",
46+
autospec=True,
47+
return_value=False,
48+
),
49+
patch(
50+
"homeassistant.components.homewizard.config_flow.has_v2_api",
51+
autospec=True,
52+
return_value=False,
53+
),
4454
):
4555
client = homewizard.return_value
4656

0 commit comments

Comments
 (0)