1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Remove yaml configuration from fritzbox (#49663)

This commit is contained in:
Michael
2021-04-25 21:49:08 +02:00
committed by GitHub
parent 631ab367e2
commit a5e25e519f
12 changed files with 126 additions and 222 deletions

View File

@@ -7,8 +7,7 @@ import pytest
@pytest.fixture(name="fritz")
def fritz_fixture() -> Mock:
"""Patch libraries."""
with patch("homeassistant.components.fritzbox.socket") as socket, patch(
"homeassistant.components.fritzbox.Fritzhome"
) as fritz, patch("homeassistant.components.fritzbox.config_flow.Fritzhome"):
socket.gethostbyname.return_value = "FAKE_IP_ADDRESS"
with patch("homeassistant.components.fritzbox.Fritzhome") as fritz, patch(
"homeassistant.components.fritzbox.config_flow.Fritzhome"
):
yield fritz